summaryrefslogtreecommitdiffstats
path: root/src/gui/opengl/qopengltextureblitter_p.h
diff options
context:
space:
mode:
authorLaszlo Agocs <laszlo.agocs@theqtcompany.com>2015-10-20 12:19:11 +0200
committerLaszlo Agocs <laszlo.agocs@theqtcompany.com>2015-10-21 13:32:42 +0000
commit2a1d3f330d5f8cfc5358055b27e8e8301b3e050a (patch)
tree77ae0a427673106f25d87be15c39f7fbcb542387 /src/gui/opengl/qopengltextureblitter_p.h
parent3dff3fdefb0c01dc90d96e6e6f8e29c3f09183c8 (diff)
Add support for TEXTURE_EXTERNAL_OES in the internal texture blitter
Assuming that the target is always GL_TEXTURE_2D is not going to be sufficient when working with EGLStreams for example where GL_TEXTURE_EXTERNAL_OES is a must. The blitter is now changed to support multiple programs so other targets can easily be added as well in the future, if necessary. Change-Id: I247d30600222fb5af6305ed5d9740baa5e43e83e Reviewed-by: Louai Al-Khanji <louai.al-khanji@theqtcompany.com>
Diffstat (limited to 'src/gui/opengl/qopengltextureblitter_p.h')
-rw-r--r--src/gui/opengl/qopengltextureblitter_p.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gui/opengl/qopengltextureblitter_p.h b/src/gui/opengl/qopengltextureblitter_p.h
index 8f7eae1c32..ebf3a4bfbb 100644
--- a/src/gui/opengl/qopengltextureblitter_p.h
+++ b/src/gui/opengl/qopengltextureblitter_p.h
@@ -68,7 +68,9 @@ public:
bool isCreated() const;
void destroy();
- void bind();
+ bool supportsExternalOESTarget() const;
+
+ void bind(GLenum target = GL_TEXTURE_2D);
void release();
void setSwizzleRB(bool swizzle);