changeset 35890:3be8afb83629

Switch back to glClearDepth. glClearDepthf seems to be missing a least on Windows.
author reimar
date Sat, 16 Mar 2013 19:19:40 +0000
parents a51578d7e264
children dd02819472cc
files libvo/gl_common.c libvo/gl_common.h libvo/matrixview.c
diffstat 3 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/libvo/gl_common.c	Sat Mar 16 19:15:42 2013 +0000
+++ b/libvo/gl_common.c	Sat Mar 16 19:19:40 2013 +0000
@@ -67,7 +67,7 @@
 void (GLAPIENTRY *mpglColor4ub)(GLubyte, GLubyte, GLubyte, GLubyte);
 void (GLAPIENTRY *mpglColor4f)(GLfloat, GLfloat, GLfloat, GLfloat);
 void (GLAPIENTRY *mpglClearColor)(GLclampf, GLclampf, GLclampf, GLclampf);
-void (GLAPIENTRY *mpglClearDepthf)(GLclampf);
+void (GLAPIENTRY *mpglClearDepth)(double);
 void (GLAPIENTRY *mpglDepthFunc)(GLenum);
 void (GLAPIENTRY *mpglEnable)(GLenum);
 void (GLAPIENTRY *mpglDisable)(GLenum);
@@ -431,7 +431,7 @@
   DEF_FUNC_DESC(Color4ub),
   DEF_FUNC_DESC(Color4f),
   DEF_FUNC_DESC(ClearColor),
-  DEF_FUNC_DESC(ClearDepthf),
+  DEF_FUNC_DESC(ClearDepth),
   DEF_FUNC_DESC(DepthFunc),
   DEF_FUNC_DESC(Enable),
   DEF_FUNC_DESC(Disable),
--- a/libvo/gl_common.h	Sat Mar 16 19:15:42 2013 +0000
+++ b/libvo/gl_common.h	Sat Mar 16 19:19:40 2013 +0000
@@ -254,7 +254,7 @@
 extern void (GLAPIENTRY *mpglColor4ub)(GLubyte, GLubyte, GLubyte, GLubyte);
 extern void (GLAPIENTRY *mpglColor4f)(GLfloat, GLfloat, GLfloat, GLfloat);
 extern void (GLAPIENTRY *mpglClearColor)(GLclampf, GLclampf, GLclampf, GLclampf);
-extern void (GLAPIENTRY *mpglClearDepthf)(GLclampf);
+extern void (GLAPIENTRY *mpglClearDepth)(double);
 extern void (GLAPIENTRY *mpglDepthFunc)(GLenum);
 extern void (GLAPIENTRY *mpglEnable)(GLenum);
 extern void (GLAPIENTRY *mpglDisable)(GLenum);
--- a/libvo/matrixview.c	Sat Mar 16 19:15:42 2013 +0000
+++ b/libvo/matrixview.c	Sat Mar 16 19:19:40 2013 +0000
@@ -278,7 +278,7 @@
     mpglClearColor(0.0f, 0.0f, 0.0f, 0.0f);
 
     // Depth to clear depth buffer to; type of test.
-    mpglClearDepthf(1.0);
+    mpglClearDepth(1.0);
     mpglDepthFunc(GL_LESS);
 
     // Enables Smooth Color Shading; try GL_FLAT for (lack of) fun.