X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali%2Finternal%2Frender%2Fgl-resources%2Fcontext.h;h=136f09b9bc3035306c695a8c74ed3df04a7f3e11;hb=e3f1a3ca11234576099f419dc245d66721a94cc9;hp=c2f11acd9ed88f288ea9ab0d40b8d11375f93849;hpb=dbbe326c4c5dd97df1796c8e59d6ed2a1231d8f0;p=platform%2Fcore%2Fuifw%2Fdali-core.git diff --git a/dali/internal/render/gl-resources/context.h b/dali/internal/render/gl-resources/context.h index c2f11ac..136f09b 100644 --- a/dali/internal/render/gl-resources/context.h +++ b/dali/internal/render/gl-resources/context.h @@ -286,6 +286,20 @@ public: } /** + * Wrapper for OpenGL ES 2.0 glBindTexture( target ) + */ + void BindTexture( int target, GLuint texture ) + { + if (mBound2dTextureId[ mActiveTextureUnit ] != texture) + { + mBound2dTextureId[ mActiveTextureUnit ] = texture; + + LOG_GL("BindTexture target(%d) %d\n", target, texture); + CHECK_GL( mGlAbstraction, mGlAbstraction.BindTexture(target, texture) ); + } + } + + /** * Wrapper for OpenGL ES 2.0 glBindTexture(GL_TEXTURE_CUBE_MAP) */ void BindCubeMapTexture( GLuint texture )