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

Bug in Lwjgl3RenderImage prevents use #436

Closed
TheDestroyer19 opened this issue Mar 8, 2017 · 2 comments
Closed

Bug in Lwjgl3RenderImage prevents use #436

TheDestroyer19 opened this issue Mar 8, 2017 · 2 comments
Assignees

Comments

@TheDestroyer19
Copy link

TheDestroyer19 commented Mar 8, 2017

In the method createTexture() there is this line:

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

@bgroenks96 bgroenks96 self-assigned this Mar 13, 2017
@bgroenks96
Copy link
Member

Thanks for reporting. I'll take a look at this ASAP.

@bgroenks96
Copy link
Member

@TheDestroyer19 Please verify that fb23eda fixes the issue. See #437 for the other issue you mentioned.

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

No branches or pull requests

2 participants