From 0d302269bbcd86144fa10012267f9386257f553f Mon Sep 17 00:00:00 2001 From: Randy Heit Date: Fri, 30 Mar 2012 04:03:46 +0000 Subject: [PATCH] - Fix GCC errors in fb_d3d9.cpp. SVN r3492 (trunk) --- src/win32/fb_d3d9.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/win32/fb_d3d9.cpp b/src/win32/fb_d3d9.cpp index 25716a0f03..537ce2abcd 100644 --- a/src/win32/fb_d3d9.cpp +++ b/src/win32/fb_d3d9.cpp @@ -2969,6 +2969,8 @@ void STACK_ARGS D3DFB::DrawTextureV (FTexture *img, double x, double y, uint32 t float v1 = tex->Box->Bottom; double uscale = 1.f / tex->Box->Owner->Width; bool scissoring = false; + FBVERTEX *vert; + float yoffs; if (parms.flipX) { @@ -3042,7 +3044,7 @@ void STACK_ARGS D3DFB::DrawTextureV (FTexture *img, double x, double y, uint32 t quad->NumTris = 2; quad->NumVerts = 4; - float yoffs = GatheringWipeScreen ? 0.5f : 0.5f - LBOffset; + yoffs = GatheringWipeScreen ? 0.5f : 0.5f - LBOffset; #if 0 // Coordinates are truncated to integers, because that's effectively @@ -3059,7 +3061,7 @@ void STACK_ARGS D3DFB::DrawTextureV (FTexture *img, double x, double y, uint32 t y1 = y1 - yoffs; #endif - FBVERTEX *vert = &VertexData[VertexPos]; + vert = &VertexData[VertexPos]; // Fill the vertex buffer. vert[0].x = float(x0);