- mGlAbstraction.BlendEquationSeparate( mBlendEquationSeparateModeRGB, mBlendEquationSeparateModeAlpha);
-
- mCullFaceMode = CullNone;
- mGlAbstraction.Disable(GL_CULL_FACE);
- mGlAbstraction.FrontFace(GL_CCW);
- mGlAbstraction.CullFace(GL_BACK);
-
- // get max texture units
- mGlAbstraction.GetIntegerv(GL_MAX_COMBINED_TEXTURE_IMAGE_UNITS, &mMaxTextureUnits);
- DALI_ASSERT_DEBUG(mMaxTextureUnits > 7); // according to GLES 2.0 specification
- mBound2dTextureId.reserve(mMaxTextureUnits);
- // rebind texture units
- for( int i=0; i < mMaxTextureUnits; ++i )
- {
- mBound2dTextureId[ i ] = 0;
- // set active texture
- mGlAbstraction.ActiveTexture( GL_TEXTURE0 + i );
- // bind the previous texture
- mGlAbstraction.BindTexture(GL_TEXTURE_2D, mBound2dTextureId[ i ] );
- }