[MPlayer-cvslog] r35984 - in trunk/libvo: gl_common.c gl_common.h matrixview.c

reimar subversion at mplayerhq.hu
Sat Mar 16 20:19:40 CET 2013


Author: reimar
Date: Sat Mar 16 20:19:40 2013
New Revision: 35984

Log:
Switch back to glClearDepth.

glClearDepthf seems to be missing a least on Windows.

Modified:
   trunk/libvo/gl_common.c
   trunk/libvo/gl_common.h
   trunk/libvo/matrixview.c

Modified: trunk/libvo/gl_common.c
==============================================================================
--- trunk/libvo/gl_common.c	Sat Mar 16 20:15:42 2013	(r35983)
+++ trunk/libvo/gl_common.c	Sat Mar 16 20:19:40 2013	(r35984)
@@ -67,7 +67,7 @@ void (GLAPIENTRY *mpglTexEnvi)(GLenum, G
 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 @@ static const extfunc_desc_t extfuncs[] =
   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),

Modified: trunk/libvo/gl_common.h
==============================================================================
--- trunk/libvo/gl_common.h	Sat Mar 16 20:15:42 2013	(r35983)
+++ trunk/libvo/gl_common.h	Sat Mar 16 20:19:40 2013	(r35984)
@@ -254,7 +254,7 @@ extern void (GLAPIENTRY *mpglTexEnvi)(GL
 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);

Modified: trunk/libvo/matrixview.c
==============================================================================
--- trunk/libvo/matrixview.c	Sat Mar 16 20:15:42 2013	(r35983)
+++ trunk/libvo/matrixview.c	Sat Mar 16 20:19:40 2013	(r35984)
@@ -278,7 +278,7 @@ void matrixview_init(int w, int h)
     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.


More information about the MPlayer-cvslog mailing list