LWJGL
May 22, 2013, 13:22:09 *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: LWJGL is now using GitHub
 
   Home   Help Search Login Register  



Pages: [1]
  Print  
Author Topic: [CLOSED] GL_FRAMEBUFFER_ATTACHMENT_LAYERED throws invalid enum exception  (Read 1538 times)
Xepil
Newbie
*
Posts: 4


« on: January 08, 2011, 13:55:03 »

Passing GL_FRAMEBUFFER_ATTACHMENT_LAYERED to glGetFramebufferAttachmentParameter() throws this error:
Code:
org.lwjgl.opengl.OpenGLException: Invalid enum (1280)

All of the other parameters work fine (FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER, FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL, FRAMEBUFFER_ATTACHMENT_OBJECT_NAME, FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE).

The gentlemen at the opengl.org forums suggested this might be a bug with LWJGL.  More details with source code to reproduce the issue can be found here:
http://www.opengl.org/discussion_boards/ubbthreads.php?ubb=showflat&Number=289008

I'm using one of the nightly builds of LWJGL 2.6 because there was a bug fix in the nightly build that wasn't in the release build.
Logged
spasi
Nerdus Imperius
*****
Posts: 752



WWW
« Reply #1 on: January 09, 2011, 02:50:38 »

I was able to reproduce this:

Quote
[LWJGL] AMD_debug_output message
        ID: 1001
        Category: API ERROR
        Severity: HIGH
        Message: glGetFramebufferAttachmentParameteriv parameter <pname> has an invalid enum '0x8da7' (GL_INVALID_ENUM)

and from the testing I did it seems like it's an AMD driver bug. I think so because:

a) The result is correct, it actually returns 0 or 1 depending on the attachment type.
b) GL32.GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER works without errors.
c) There's nothing special about glGetFramebufferAttachmentParameter, it works for every other token and it doesn't handle GL_FRAMEBUFFER_ATTACHMENT_LAYERED any differently.
Logged
Xepil
Newbie
*
Posts: 4


« Reply #2 on: January 09, 2011, 10:53:56 »

Thank you spasi.  I will report it to AMD.
Logged
kappa
Administrator
Nerdus Imperius
*****
Posts: 1112



« Reply #3 on: January 22, 2011, 14:26:05 »

marked as closed as not really a LWJGL issue or something that we can do something about from our side.
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines
SMFAds for Free Forums
Valid XHTML 1.0! Valid CSS!