glew icon indicating copy to clipboard operation
glew copied to clipboard

problems of glEnablei for GL_COLOR_LOGIC_OP

Open ygwangthu opened this issue 4 years ago • 6 comments

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?

ygwangthu avatar Dec 25 '20 05:12 ygwangthu

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

nigels-com avatar Dec 26 '20 11:12 nigels-com

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?

ygwangthu avatar Dec 27 '20 07:12 ygwangthu

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

nigels-com avatar Dec 27 '20 12:12 nigels-com

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

nigels-com avatar Jan 10 '21 01:01 nigels-com

Anything further on this?

nigels-com avatar Mar 21 '21 02:03 nigels-com

A simple reproducer program would be helpful here.

nigels-com avatar Jul 17 '21 04:07 nigels-com