Nuklear icon indicating copy to clipboard operation
Nuklear copied to clipboard

Error assertion get call in nuklear_glfw_gl4.h line 178 regarding fragment shader bindless handle

Open KDahir247 opened this issue 5 years ago • 2 comments

Hey so i've been playing around with nuklear and it seem like the nuklear_glfw_gl4.h on the fragment shader is giving of a error on " sampler2D smp = sampler2D(Texture);\n".

tried to log the error and I've got the following.

[GL]: failed to compile shader: Fragment shader failed to compile with the following errors: ERROR: 0:10: error(#442) Invalid construct, bindless handle only can be constructed from uvec2. ERROR: error(#273) 1 compilation errors. No code generated

if anybody know the solution that would be amazing 👍

KDahir247 avatar Sep 20 '20 13:09 KDahir247

Hi in the shader change "uniform uint64_t Texture;\n" to "uniform uvec2 Texture;\n"

and then go to line 440 I think:

Comment out this line glUniformHandleui64ARB(dev->uniform_tex, tex_handle); and place directly above or under this glUniform2ui(dev->uniform_tex, tex_handle, tex_handle >> 32);

KreideGit avatar Aug 31 '21 14:08 KreideGit

Bug still reproducible.

wave9d avatar Jan 07 '23 22:01 wave9d