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 post / 0 nuovi
Ultimo contenuto
Per informazioni complete sulle ottimizzazioni del compilatore, consultare l'Avviso sull'ottimizzazione
Ritratto di Brad Werth (Intel)

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.

Accedere per lasciare un commento.