summaryrefslogtreecommitdiffstats
path: root/src/gui/opengl/qopengltexture_p.h
diff options
context:
space:
mode:
authorGiuseppe D'Angelo <giuseppe.dangelo@kdab.com>2015-01-14 00:02:38 +0100
committerSean Harmer <sean.harmer@kdab.com>2015-01-17 14:26:43 +0100
commite4d15b41e83d552c64f32541570f9009a6c6ec81 (patch)
treeb7d32a6dad7ce87e94bdf5e2bf850cab3d163756 /src/gui/opengl/qopengltexture_p.h
parentebdd4a0ba7daf74b11f716d291a97f7cd28c2aca (diff)
QOpenGLTexture: introduce texture comparison support
Shadow sampling is an old OpenGL feature (hello, OpenGL 1.3!), which was missing from QOpenGLTexture. This commit adds the relevant support. Change-Id: I9f6b552d806a356d24ee08121af6bc9ce684f2b5 Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
Diffstat (limited to 'src/gui/opengl/qopengltexture_p.h')
-rw-r--r--src/gui/opengl/qopengltexture_p.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gui/opengl/qopengltexture_p.h b/src/gui/opengl/qopengltexture_p.h
index 3b70010231..bd0396bab9 100644
--- a/src/gui/opengl/qopengltexture_p.h
+++ b/src/gui/opengl/qopengltexture_p.h
@@ -138,6 +138,8 @@ public:
QOpenGLTexture::SwizzleValue swizzleMask[4];
QOpenGLTexture::DepthStencilMode depthStencilMode;
+ QOpenGLTexture::ComparisonFunction comparisonFunction;
+ QOpenGLTexture::ComparisonMode comparisonMode;
QOpenGLTexture::Filter minFilter;
QOpenGLTexture::Filter magFilter;