Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Vladimir_H_
Beginner
45 Views

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?

 

 

 

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