Moved the start of an ifdef so it includes vars specific to the ifdef
authorKent Mein <mein@cs.umn.edu>
Mon, 4 Apr 2005 15:57:50 +0000 (15:57 +0000)
committerKent Mein <mein@cs.umn.edu>
Mon, 4 Apr 2005 15:57:50 +0000 (15:57 +0000)
to get rid of warnings about unused vars (on non __APPLE__ system)

Kent

intern/bmfont/intern/BMF_BitmapFont.cpp

index a2c59351c148543cdbcbfe8d451684df45751078..421ef45d5dfcf3be35259e9b4fc303722061b21a 100644 (file)
@@ -86,10 +86,11 @@ void BMF_BitmapFont::DrawString(char* str)
 {
        GLint alignment;
        unsigned char c;
+
+#ifdef __APPLE__
        GLint vp[4];  // hack stuff
        GLubyte nullm = 0;      // hack stuff
        
-#ifdef __APPLE__
        if(is_a_really_crappy_nvidia_card()) {
                glGetIntegerv(GL_VIEWPORT, vp);   // hack stuff