diff options
| author | Steven Fuller <relnev@icculus.org> | 2008-10-05 19:16:11 -0700 |
|---|---|---|
| committer | Patryk Obara <dreamer.tan@gmail.com> | 2019-08-20 02:22:37 +0200 |
| commit | ebfc59249e9ed75615f89ad12e1fca6503642707 (patch) | |
| tree | c50e8100bd5e15b2912cbd7c879895c97aee7495 /src/opengl.c | |
| parent | f9f50d1fb0346e662b8ef6eab8924e0b07489506 (diff) | |
Fixed graphics issues with the alien sense vision mode.
Diffstat (limited to 'src/opengl.c')
| -rw-r--r-- | src/opengl.c | 27 |
1 files changed, 18 insertions, 9 deletions
diff --git a/src/opengl.c b/src/opengl.c index 6bc759d..89bb7de 100644 --- a/src/opengl.c +++ b/src/opengl.c @@ -1329,18 +1329,18 @@ void D3D_ScreenInversionOverlay() SelectPolygonBeginType(3); /* triangles */ pglTexCoord2f(s[0], t[0]); - pglVertex3f(x[0], y[0], 1.0f); + pglVertex3f(x[0], y[0], -1.0f); pglTexCoord2f(s[1], t[1]); - pglVertex3f(x[1], y[1], 1.0f); + pglVertex3f(x[1], y[1], -1.0f); pglTexCoord2f(s[3], t[3]); - pglVertex3f(x[3], y[3], 1.0f); + pglVertex3f(x[3], y[3], -1.0f); pglTexCoord2f(s[1], t[1]); - pglVertex3f(x[1], y[1], 1.0f); + pglVertex3f(x[1], y[1], -1.0f); pglTexCoord2f(s[2], t[2]); - pglVertex3f(x[2], y[2], 1.0f); + pglVertex3f(x[2], y[2], -1.0f); pglTexCoord2f(s[3], t[3]); - pglVertex3f(x[3], y[3], 1.0f); + pglVertex3f(x[3], y[3], -1.0f); pglEnd(); @@ -1598,7 +1598,10 @@ void D3D_RenderHUDString(char *stringPtr,int x,int y,int colour) { struct VertexTag quadVertices[4]; -if (stringPtr == NULL) return; + if (stringPtr == NULL) + { + return; + } quadVertices[0].Y = y-1; quadVertices[1].Y = y-1; @@ -1645,7 +1648,10 @@ void D3D_RenderHUDString_Clipped(char *stringPtr,int x,int y,int colour) struct VertexTag quadVertices[4]; // LOCALASSERT(y<=0); -if (stringPtr == NULL) return; + if (stringPtr == NULL) + { + return; + } CheckFilteringModeIsCorrect(FILTERING_BILINEAR_OFF); @@ -1694,7 +1700,10 @@ void D3D_RenderHUDString_Centred(char *stringPtr, int centreX, int y, int colour char *ptr = stringPtr; struct VertexTag quadVertices[4]; -if (stringPtr == NULL) return; + if (stringPtr == NULL) + { + return; + } while(*ptr) { |
