We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
In the method createTexture() there is this line:
createTexture()
GL11.glTexImage2D(GL11.GL_TEXTURE_2D, 0, 4, width, height, 0, srcPixelFormat, GL11.GL_UNSIGNED_BYTE, textureBuffer);
The 4 is not a valid format. It should be something like GL11.GL_RGBA or another pixel format. -- see https://www.khronos.org/registry/OpenGL-Refpages/gl4/html/glTexImage2D.xhtml This occurs at line 126 Also, in the checkGLError() function it attempts to call GLUtil.getErrorString(error); which is no longer present in LWJGL 3.1.1
4
GL11.GL_RGBA
checkGLError()
GLUtil.getErrorString(error);
The text was updated successfully, but these errors were encountered:
Thanks for reporting. I'll take a look at this ASAP.
Sorry, something went wrong.
Fix Lwjgl3RenderImage invalid glTexImage2d format.
fb23eda
Fixes nifty-gui#436
@TheDestroyer19 Please verify that fb23eda fixes the issue. See #437 for the other issue you mentioned.
bgroenks96
No branches or pull requests
In the method
createTexture()
there is this line:The
4
is not a valid format. It should be something likeGL11.GL_RGBA
or another pixel format. -- see https://www.khronos.org/registry/OpenGL-Refpages/gl4/html/glTexImage2D.xhtmlThis occurs at line 126
Also, in the
checkGLError()
function it attempts to callGLUtil.getErrorString(error);
which is no longer present in LWJGL 3.1.1The text was updated successfully, but these errors were encountered: