Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
KDahir247 opened this issue Sep 20, 2020 · 2 comments

Comments

@KDahir247
Copy link

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 👍

@KreideGit
Copy link

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);

@wave9d
Copy link

wave9d commented Jan 7, 2023

Bug still reproducible.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants