nigels-com / glew

The OpenGL Extension Wrangler Library
Other
2.59k stars 611 forks source link

problems of glEnablei for GL_COLOR_LOGIC_OP #284

Open ygwangthu opened 3 years ago

ygwangthu commented 3 years ago

Hi, guys.

I want to use glEnablei(GL_COLOR_LOGIC_OP, 0), but glGetError() returns GL_INVALID_ENUM. I saw the introduction of glEnable, it says that

Any token accepted by glEnable or glDisable is also accepted by glEnablei and glDisablei

I ensure that glEnable(GL_COLOR_LOGIC_OP) is okay.

By the way, I use OpenGL4.0. Is this the problem of glew or other related issues?

nigels-com commented 3 years ago

Possibly some sort of driver bug. Can you attach the output of glewinfo?

ygwangthu commented 3 years ago

Possibly some sort of driver bug. Can you attach the output of glewinfo?

Here it is glewinfo.txt

I have found a new link glEnable It says that only GL_BLEND and GL_SCISSOR_TEST can be used with indices higher than zero. I am confused about that since I only use the index of 0, or I can not use glEnablei for other capabilities except the above two?

nigels-com commented 3 years ago

Might be interesting to confirm the problem for another vendor implementation. Or, in a pinch, a newer or older Nvidia driver.

nigels-com commented 3 years ago

Seems unlikely to be GLEW doing something wrong here. Marking as Question, for now.

nigels-com commented 3 years ago

Anything further on this?

nigels-com commented 3 years ago

A simple reproducer program would be helpful here.