# HG changeset patch # User reimar # Date 1363461580 0 # Node ID 3be8afb836299a7e1f28936663a3b0276cda7668 # Parent a51578d7e264041c721ecca03023e0114809a586 Switch back to glClearDepth. glClearDepthf seems to be missing a least on Windows. diff -r a51578d7e264 -r 3be8afb83629 libvo/gl_common.c --- 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), diff -r a51578d7e264 -r 3be8afb83629 libvo/gl_common.h --- 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); diff -r a51578d7e264 -r 3be8afb83629 libvo/matrixview.c --- 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.