OpenGL bug - only set was implemented but no corresponding get

OpenGL bug - only set was implemented but no corresponding get

Hi. I find that following function doesn't work on Intel HD 4000:

    double dMatColor[16];

    glGetDoublev(GL_COLOR_MATRIX, dMatColor);

FYI. #define GL_COLOR_MATRIX                   0x80B1

So I'm getting weird colors when I set color matrix back:

    glMatrixMode(GL_COLOR);
    glLoadMatrixd(dMatColor);

This code works fine on NVidia and AMD GPUs. Everything also works fine on Intel GPU if I initialize identity color matrix before glGetDoublev call. But I need to get original color matrix. I think this happens because glGetDoublev(GL_COLOR_MATRIX) was not implemented. Can you please check?

 

 

 

2 posts / 0 new
Last post
For more complete information about compiler optimizations, see our Optimization Notice.

Intel HD 4000 doesn't support the GL_ARB_imaging extension. The behavior of glGetDoublev(GL_COLOR_MATRIX) is undefined. For checking capabilities of your graphics hardware, try GLView at http://www.realtech-vr.com/glview/extensions.html.

Leave a Comment

Please sign in to add a comment. Not a member? Join today