Khronos Public Bugzilla
Bug 318 - Stencil1,Stencil4 and Stencil8 tests do not set the viewport for rendering to the texture
Stencil1,Stencil4 and Stencil8 tests do not set the viewport for rendering to...
Status: RESOLVED LATER
Product: OpenGL-ES
Classification: Unclassified
Component: Conformance Tests
2.0
PC Linux
: P3 major
: ---
Assigned To: Jon Leech
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2010-06-14 11:50 PDT by Colin Davidson
Modified: 2013-06-06 02:43 PDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Colin Davidson 2010-06-14 11:50:07 PDT
The texture being rendered to is 512x512, but there is no change to the viewport to accomodate this. Therefore when the screen size is smaller than the texture only part of the texture is being rendered to. This is in the tests defined by the source GL2ExtensionTests/GTFExtensionTestStencil8.c etc.

This is fixed by adding 
            glViewport(0, 0, 512, 512);
at line 317 (after glBindFramebuffer(GL_FRAMEBUFFER, frameBuffer);)

and
            glViewport(0, 0, windowWidth, windowHeight);
at line 323 (after glBindFramebuffer(GL_FRAMEBUFFER, 0);)

In the similar GL2Tests/GTFGL2TestFramebufferObjects.c source code the viewport changing does appear to happen.
Comment 1 Jon Leech 2013-06-06 02:43:48 PDT
If this is still an issue, please raise it through internal Khronos
mailing lists.