- if ( surfaceOrientation == 90 || surfaceOrientation == 270 )
- {
- int temp = viewportRect.width;
- viewportRect.width = viewportRect.height;
- viewportRect.height = temp;
- }
-
- mImpl->currentContext->Viewport(viewportRect.x, viewportRect.y, viewportRect.width, viewportRect.height);
-
- if( instruction.mIsClearColorSet )
- {
- mImpl->currentContext->ClearColor( clearColor.r,
- clearColor.g,
- clearColor.b,
- clearColor.a );
-
- if( !clearFullFrameRect )