[Gtkradiant] Tiny patch for gcc 2.95.4 + Mesa 3.2.1
David Olofson
gtkradiant@zerowing.idsoftware.com
Mon, 5 May 2003 14:31:30 +0200
--------------Boundary-00=_ISYE1R338W176ZGH0710
Content-Type: text/plain;
charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
The compiler wouldn't cast an int to 'enum GLenum' implicitly, so I=20
had to add an explicit cast in "cpicosurface.cpp".
This patch is against the stable tree from CVS as of a few hours ago.
//David Olofson - Programmer, Composer, Open Source Advocate
=2E- The Return of Audiality! --------------------------------.
| Free/Open Source Audio Engine for use in Games or Studio. |
| RT and off-line synth. Scripting. Sample accurate timing. |
`-----------------------------------> http://audiality.org -'
--- http://olofson.net --- http://www.reologica.se ---
--------------Boundary-00=_ISYE1R338W176ZGH0710
Content-Type: text/x-diff;
charset="us-ascii";
name="GLenum.patch"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename="GLenum.patch"
diff -u -r /home/david/download/CVS/radiant/GtkRadiant/plugins/model/cpicosurface.cpp /home/david/src/other/GtkRadiant/plugins/model/cpicosurface.cpp
--- /home/david/download/CVS/radiant/GtkRadiant/plugins/model/cpicosurface.cpp Wed Dec 11 19:05:50 2002
+++ /home/david/src/other/GtkRadiant/plugins/model/cpicosurface.cpp Mon May 5 11:52:15 2003
@@ -61,7 +61,7 @@
g_QglTable.m_pfn_qglEnable( GL_ALPHA_TEST );
pShader->getAlphaFunc( &nFunc, &fRef );
- g_QglTable.m_pfn_qglAlphaFunc( nFunc, fRef );
+ g_QglTable.m_pfn_qglAlphaFunc( (enum GLenum)nFunc, fRef );
}
}
else
--------------Boundary-00=_ISYE1R338W176ZGH0710--