summaryrefslogtreecommitdiffstats
path: root/jni/feature_mos/src/mosaic_renderer/WarpRenderer.h
diff options
context:
space:
mode:
Diffstat (limited to 'jni/feature_mos/src/mosaic_renderer/WarpRenderer.h')
-rwxr-xr-xjni/feature_mos/src/mosaic_renderer/WarpRenderer.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/jni/feature_mos/src/mosaic_renderer/WarpRenderer.h b/jni/feature_mos/src/mosaic_renderer/WarpRenderer.h
index 7986215..774b33f 100755
--- a/jni/feature_mos/src/mosaic_renderer/WarpRenderer.h
+++ b/jni/feature_mos/src/mosaic_renderer/WarpRenderer.h
@@ -29,6 +29,7 @@ class WarpRenderer {
int GetTextureName();
void SetInputTextureName(GLuint textureName);
void SetInputTextureDimensions(int width, int height);
+ void SetInputTextureType(GLenum textureType);
void InitializeGLContext();
@@ -47,11 +48,12 @@ class WarpRenderer {
// Redefine this to use special texture types such as
// GL_TEXTURE_EXTERNAL_OES.
- virtual GLenum InputTextureType() const { return GL_TEXTURE_2D; }
+ virtual GLenum InputTextureType() const { return mInputTextureType; }
GLuint mGlProgram;
GLuint mInputTextureName;
+ GLenum mInputTextureType;
int mInputTextureWidth;
int mInputTextureHeight;