diff options
author | Thiago Macieira <thiago.macieira@intel.com> | 2011-12-30 14:54:43 -0200 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-03-24 15:10:00 +0100 |
commit | f49f94434e082657f2227292c15cad20493f112c (patch) | |
tree | 5137e58d25bf84cd3585e3fd3f53938f259f565f /src | |
parent | b8625fd70e4ff194a52d52144bf77aff05b9b093 (diff) |
Silence a warning about a change of sign.
GLuint is, like the name says, unsigned. To store -1 in it, a change
of sign happens. Silence the warning by casting the -1 to GLuint
first.
Change-Id: I165a32c486358a60f7c5fd0c439204ed2f9f7f16
Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/gui/opengl/qopenglpaintengine_p.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/opengl/qopenglpaintengine_p.h b/src/gui/opengl/qopenglpaintengine_p.h index 1b3dfbae28..8b49ec250f 100644 --- a/src/gui/opengl/qopenglpaintengine_p.h +++ b/src/gui/opengl/qopenglpaintengine_p.h @@ -199,7 +199,7 @@ public: void updateBrushUniforms(); void updateMatrix(); void updateCompositionMode(); - void updateTextureFilter(GLenum target, GLenum wrapMode, bool smoothPixmapTransform, GLuint id = -1); + void updateTextureFilter(GLenum target, GLenum wrapMode, bool smoothPixmapTransform, GLuint id = GLuint(-1)); void resetGLState(); |