Skip to content
Snippets Groups Projects
Commit c146dfd4 authored by Julien Michel's avatar Julien Michel
Browse files

BUG: Fixing quicklook color

parent bf6a6be0
Branches
Tags
No related merge requests found
...@@ -187,6 +187,10 @@ void ImageModelRenderer::paintGL( const RenderingContext& context ) ...@@ -187,6 +187,10 @@ void ImageModelRenderer::paintGL( const RenderingContext& context )
glBindTexture (GL_TEXTURE_2D, texture); glBindTexture (GL_TEXTURE_2D, texture);
// rectangle where to draw // rectangle where to draw
// Reset color before rendering
glColor3d(1.0f,1.0f,1.0f);
glBegin (GL_QUADS); glBegin (GL_QUADS);
glTexCoord2f (0.0, 1.0); glVertex2f(originX, originY + sizeY); glTexCoord2f (0.0, 1.0); glVertex2f(originX, originY + sizeY);
glTexCoord2f (1.0, 1.0); glVertex2f(originX + sizeX, originY + sizeY); glTexCoord2f (1.0, 1.0); glVertex2f(originX + sizeX, originY + sizeY);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment