diff --git a/cocos2dx/platform/android/CCXEGLView_android.cpp b/cocos2dx/platform/android/CCXEGLView_android.cpp index 5fc08caa5b..1c4dae0461 100644 --- a/cocos2dx/platform/android/CCXEGLView_android.cpp +++ b/cocos2dx/platform/android/CCXEGLView_android.cpp @@ -134,6 +134,13 @@ void CCXEGLView::setViewPortInPoints(float x, float y, float w, float h) (GLint)(y * factor) + m_rcViewPort.origin.y, (GLint)(w * factor), (GLint)(h * factor)); + } + else + { + glViewport((GLint)x, + (GLint)y, + (GLint)w, + (GLint)h); } }