mirror of https://github.com/axmolengine/axmol.git
fix compile error after merge
This commit is contained in:
parent
feec24e3ef
commit
dbf241c38d
|
@ -523,15 +523,12 @@ void RenderTexture::onBegin()
|
||||||
//
|
//
|
||||||
Director *director = Director::getInstance();
|
Director *director = Director::getInstance();
|
||||||
Size size = director->getWinSizeInPixels();
|
Size size = director->getWinSizeInPixels();
|
||||||
kmGLGetMatrix(KM_GL_PROJECTION, &_oldProjMatrix);
|
|
||||||
kmGLMatrixMode(KM_GL_PROJECTION);
|
|
||||||
kmGLLoadMatrix(&_projectionMatrix);
|
|
||||||
|
|
||||||
|
_oldProjMatrix = director->getMatrix(MATRIX_STACK_TYPE::MATRIX_STACK_PROJECTION);
|
||||||
|
director->loadMatrix(MATRIX_STACK_TYPE::MATRIX_STACK_PROJECTION, _projectionMatrix);
|
||||||
|
|
||||||
|
_oldTransMatrix = director->getMatrix(MATRIX_STACK_TYPE::MATRIX_STACK_MODELVIEW);
|
||||||
kmGLGetMatrix(KM_GL_MODELVIEW, &_oldTransMatrix);
|
director->loadMatrix(MATRIX_STACK_TYPE::MATRIX_STACK_MODELVIEW, _transformMatrix);
|
||||||
kmGLMatrixMode(KM_GL_MODELVIEW);
|
|
||||||
kmGLLoadMatrix(&_transformMatrix);
|
|
||||||
|
|
||||||
if(!_keepMatrix)
|
if(!_keepMatrix)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue