lion0406 / angleproject

Automatically exported from code.google.com/p/angleproject
Other
0 stars 0 forks source link

glBindFramebuffer will set viewport as well which is not specified by GLES Specs #382

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. glBindFramebuffer(GL_FRAMEBUFFER, fbo);

What is the expected output? What do you see instead?

Viewport will be set automatically to match the full framebuffer.
This is the default behaviour of D3D9 but is not specified in GLES.

What version of the product are you using? On what operating system?
Windows 8 Pro, got latest ANGLE src

Please provide any additional information below.
this could easily be fixed by resetting the previous viewport after setting the 
D3D9 render target. The issue is not really important, but I thought it would 
be good to mention it.

Original issue reported on code.google.com by shadersc...@gmail.com on 11 Nov 2012 at 4:09

GoogleCodeExporter commented 9 years ago
Do you have a simple example that replicates a problem?  Looking at the source, 
we should be resetting the viewport after we change render targets.

Original comment by dan...@transgaming.com on 13 Nov 2012 at 7:18

GoogleCodeExporter commented 9 years ago
Hmmm, that's weird. I did not check the angle code. Hi had this issue a few 
weeks ago that ANGLE rendered a different result than I got on iOS until I set 
the viewport manually in iOS. I will look for the code revision if I can find 
it. 
But thanks for looking into it.

Original comment by shadersc...@gmail.com on 13 Nov 2012 at 9:07

GoogleCodeExporter commented 9 years ago
Could not reproduce.

Original comment by c...@chromium.org on 21 May 2014 at 6:29