Developing Games on Intel Graphics
If you are gaming on graphics integrated in your Intel Processor, this is the place for you! Find answers to your questions or post your issues with PC games
492 Discussions

OpenGL bug - only set was implemented but no corresponding get

Vladimir_H_
Beginner
327 Views

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?

 

 

 

0 Kudos
1 Reply
Bradley_W_Intel
Employee
327 Views
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.
0 Kudos
Reply