diff options
author | Robert Ellison <[email protected]> | 2009-03-11 16:27:38 -0600 |
---|---|---|
committer | Robert Ellison <[email protected]> | 2009-03-11 21:19:45 -0600 |
commit | 6dceeb2eb804d708639d68a13a924d65f366458a (patch) | |
tree | 25baf111f173ea5288c3b092f204e8f4d6750b9b /progs/samples | |
parent | 548be3846db59ad43934a159c051b359db6e56db (diff) |
i965: fix polygon face orientation when rendering to FBO
In the i965, the FBO coordinate system is inverted from the standard
OpenGL/Mesa coordinate system; that means that the viewport and the
polygon face orientation have to be inverted if rendering to a FBO.
The viewport was already being handled correctly; but polygon face
was not. This caused a conform failure when rendering to texture with
two-sided lighting enabled.
This fixes the problem in the i965 driver, and adds to the comment about
the gl_framebuffer "Name" field so that this isn't a surprise to other
driver writers.
Diffstat (limited to 'progs/samples')
0 files changed, 0 insertions, 0 deletions