File tree Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -113,7 +113,6 @@ static struct nk_glfw {
113
113
114
114
#define NK_SHADER_VERSION "#version 450 core\n"
115
115
#define NK_SHADER_BINDLESS "#extension GL_ARB_bindless_texture : require\n"
116
- #define NK_SHADER_64BIT "#extension GL_ARB_gpu_shader_int64 : require\n"
117
116
118
117
NK_API void
119
118
nk_glfw3_device_create ()
@@ -123,7 +122,6 @@ nk_glfw3_device_create()
123
122
static const GLchar * vertex_shader =
124
123
NK_SHADER_VERSION
125
124
NK_SHADER_BINDLESS
126
- NK_SHADER_64BIT
127
125
"uniform mat4 ProjMtx;\n"
128
126
"in vec2 Position;\n"
129
127
"in vec2 TexCoord;\n"
@@ -138,15 +136,13 @@ nk_glfw3_device_create()
138
136
static const GLchar * fragment_shader =
139
137
NK_SHADER_VERSION
140
138
NK_SHADER_BINDLESS
141
- NK_SHADER_64BIT
142
139
"precision mediump float;\n"
143
- "uniform uint64_t Texture;\n"
140
+ "layout(bindless_sampler) uniform sampler2D Texture;\n"
144
141
"in vec2 Frag_UV;\n"
145
142
"in vec4 Frag_Color;\n"
146
143
"out vec4 Out_Color;\n"
147
144
"void main(){\n"
148
- " sampler2D smp = sampler2D(Texture);\n"
149
- " Out_Color = Frag_Color * texture(smp, Frag_UV.st);\n"
145
+ " Out_Color = Frag_Color * texture(Texture, Frag_UV.st);\n"
150
146
"}\n" ;
151
147
152
148
struct nk_glfw_device * dev = & glfw .ogl ;
You can’t perform that action at this time.
0 commit comments