Skip to content

Commit

Permalink
+ fix bug in GLImageBox
Browse files Browse the repository at this point in the history
  • Loading branch information
wwmayer committed Mar 31, 2016
1 parent 0875dfa commit 2521718
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions src/Mod/Image/Gui/GLImageBox.cpp
Expand Up @@ -188,12 +188,10 @@ void GLImageBox::drawImage()
else
{
glPixelTransferf(GL_MAP_COLOR, 0.0);
float zero = 0.0;
float one = 1.0;
glPixelMapfv(GL_PIXEL_MAP_R_TO_R, 1, &zero);
glPixelMapfv(GL_PIXEL_MAP_G_TO_G, 1, &zero);
glPixelMapfv(GL_PIXEL_MAP_B_TO_B, 1, &zero);
glPixelMapfv(GL_PIXEL_MAP_A_TO_A, 1, &one);
glPixelMapfv(GL_PIXEL_MAP_R_TO_R, 0, NULL);
glPixelMapfv(GL_PIXEL_MAP_G_TO_G, 0, NULL);
glPixelMapfv(GL_PIXEL_MAP_B_TO_B, 0, NULL);
glPixelMapfv(GL_PIXEL_MAP_A_TO_A, 0, NULL);
}

// Get the pixel format
Expand Down

0 comments on commit 2521718

Please sign in to comment.