Fix some minor bugs pointed out by PVS Studio (thanks!)

This commit is contained in:
Henrik Rydgard
2012-03-03 20:07:20 +01:00
parent ee09def802
commit f5d4fe0bfe
7 changed files with 7 additions and 7 deletions

View File

@ -383,7 +383,7 @@ void drawShadedTexQuad(IDirect3DTexture9 *texture,
float v2=((float)rSource->bottom) * sh;
float g = 1.0f/Gamma;
struct Q2DVertex { float x,y,z,rhw,u,v,w,h,G; } coords[4] = {
const struct Q2DVertex { float x,y,z,rhw,u,v,w,h,G; } coords[4] = {
{-1.0f - dw,-1.0f + dh, 0.0f,1.0f, u1, v2, sw, sh, g},
{-1.0f - dw, 1.0f + dh, 0.0f,1.0f, u1, v1, sw, sh, g},
{ 1.0f - dw,-1.0f + dh, 0.0f,1.0f, u2, v2, sw, sh, g},