![]() ![]() Throw new IllegalStateException("No opengl 3. If (glGetInteger(GL_MAJOR_VERSION) < 3 || (glGetInteger(GL_MAJOR_VERSION) = 3 & glGetInteger(GL_MINOR_VERSION) < 3)) ("-glRenderer: " + glGetString(GL_VENDOR) + ", " + glGetString(GL_RENDERER)) ("-SL Version: " + glGetString(GL_SHADING_LANGUAGE_VERSION)) ("-Version: " + glGetString(GL_VERSION)) When I run it, the first glGetError() shows 0 (as expected), but the 2nd and 3rd show 0x500 (INVALIDENUM) This is kinda weird since glCreateShader shouldn't return that unless GLVERTEXSHADER definition was wrong, which I think it isn't. Well, it would certainly be interesting why exactly a GLINVALIDENUM is created there. Common Mistakes when using deprecated functionality. Mistakes related to measuring Performance. ![]() Unexpected Results you can get when using OpenGL. ("-FB Alpha Bits: " + glGetFramebufferAttachmentParameteri(GL_FRAMEBUFFER, GL_FRONT, GL_FRAMEBUFFER_ATTACHMENT_ALPHA_SIZE)) There are also other articles explaining common mistakes: Common Mistakes in GLSL. The Element Array Buffer is used merely by having a non-zero one bound when you call glDrawElements (. ("-FB Blue Bits: " + glGetFramebufferAttachmentParameteri(GL_FRAMEBUFFER, GL_FRONT, GL_FRAMEBUFFER_ATTACHMENT_BLUE_SIZE)) For one thing, this is strange: glEnableClientState (GLELEMENTARRAYBUFFER) and guaranteed to generate a GLINVALIDENUM error on any implementation. ("-FB Green Bits: " + glGetFramebufferAttachmentParameteri(GL_FRAMEBUFFER, GL_FRONT, GL_FRAMEBUFFER_ATTACHMENT_GREEN_SIZE)) This error seems to be completley harmless and hasnt caused any problems in the mod, but it makes it impossible for me to print things to the console because this error keeps spamming. ("-FB Red Bits: " + glGetFramebufferAttachmentParameteri(GL_FRAMEBUFFER, GL_FRONT, GL_FRAMEBUFFER_ATTACHMENT_RED_SIZE)) Reveal hidden contents It just keeps on going. ("-FB depth Bits: " + glGetFramebufferAttachmentParameteri(GL_FRAMEBUFFER, GL_STENCIL, GL_FRAMEBUFFER_ATTACHMENT_DEPTH_SIZE)) glRenderer: ATI Technologies Inc., Radeon ™ RX 480 GraphicsĪnd at this code snippet he gets an opengl error: ("-FB stencil Bits: " + glGetFramebufferAttachmentParameteri(GL_FRAMEBUFFER, GL_STENCIL, GL_FRAMEBUFFER_ATTACHMENT_STENCIL_SIZE)) Version: 8 Core Profile/Debug Context 21.19.137.1 So I’m asking people over at java gaming to try out my game and one of them has encountered a problem I can’t solve. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |