summaryrefslogtreecommitdiff
path: root/background.h
diff options
context:
space:
mode:
authorGravatar chirs241097@gmail.com <chirs241097@gmail.com@c17bf020-1265-9734-9302-a83f62007ddb> 2014-03-07 04:01:56 +0000
committerGravatar chirs241097@gmail.com <chirs241097@gmail.com@c17bf020-1265-9734-9302-a83f62007ddb> 2014-03-07 04:01:56 +0000
commit3c7ced2cf99a2874e4d761e6859dbc285bbed5ac (patch)
tree31d746e387f509c6fd83c4a1a0eea70c1fb783c0 /background.h
parent34743b2b02f912f92a9a17b310979aab95293532 (diff)
downloadbullet-lab-remix-3c7ced2cf99a2874e4d761e6859dbc285bbed5ac.tar.xz
Fix compile errors in Windows and another memory leak, which won't be found under Linux. Done testing Windows version.
Diffstat (limited to 'background.h')
-rw-r--r--background.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/background.h b/background.h
index 2f6a56f..9cc6a37 100644
--- a/background.h
+++ b/background.h
@@ -437,9 +437,8 @@ public:
void Render()
{
#ifdef WIN32
- skygrad->SetTexture(0);
- skygrad->SetTextureRect(0,0,800,600);
- skygrad->SetBlendMode(BLEND_DEFAULT);
+ skygrad.tex=0;
+ skygrad.blend=BLEND_DEFAULT;
#endif
skygrad.v[0].col=skygrad.v[1].col=colSkyTop.GetHWColor();
skygrad.v[2].col=skygrad.v[3].col=colSkyBtm.GetHWColor();