Mercurial > mplayer.hg
changeset 36129:4129ba181ad7
Remove glMatrixMode and glLoadIdentity functions.
They are not really necessary.
author | reimar |
---|---|
date | Sat, 04 May 2013 15:20:45 +0000 |
parents | e51b909bdd8e |
children | df7cb3197862 |
files | libvo/gl_common.c libvo/gl_common.h libvo/matrixview.c libvo/vo_gl.c libvo/vo_gl_tiled.c |
diffstat | 5 files changed, 0 insertions(+), 19 deletions(-) [+] |
line wrap: on
line diff
--- a/libvo/gl_common.c Sat May 04 15:20:43 2013 +0000 +++ b/libvo/gl_common.c Sat May 04 15:20:45 2013 +0000 @@ -48,8 +48,6 @@ void (GLAPIENTRY *mpglBegin)(GLenum); void (GLAPIENTRY *mpglEnd)(void); void (GLAPIENTRY *mpglViewport)(GLint, GLint, GLsizei, GLsizei); -void (GLAPIENTRY *mpglMatrixMode)(GLenum); -void (GLAPIENTRY *mpglLoadIdentity)(void); void (GLAPIENTRY *mpglLoadMatrixf)(const float *); void (GLAPIENTRY *mpglClear)(GLbitfield); GLuint (GLAPIENTRY *mpglGenLists)(GLsizei); @@ -443,8 +441,6 @@ DEF_FUNC_DESC(Begin), DEF_FUNC_DESC(End), DEF_FUNC_DESC(Viewport), - DEF_FUNC_DESC(MatrixMode), - DEF_FUNC_DESC(LoadIdentity), DEF_FUNC_DESC(LoadMatrixf), DEF_FUNC_DESC(Clear), DEF_FUNC_DESC(GenLists),
--- a/libvo/gl_common.h Sat May 04 15:20:43 2013 +0000 +++ b/libvo/gl_common.h Sat May 04 15:20:45 2013 +0000 @@ -237,8 +237,6 @@ extern void (GLAPIENTRY *mpglBegin)(GLenum); extern void (GLAPIENTRY *mpglEnd)(void); extern void (GLAPIENTRY *mpglViewport)(GLint, GLint, GLsizei, GLsizei); -extern void (GLAPIENTRY *mpglMatrixMode)(GLenum); -extern void (GLAPIENTRY *mpglLoadIdentity)(void); extern void (GLAPIENTRY *mpglLoadMatrixf)(const float *); extern void (GLAPIENTRY *mpglClear)(GLbitfield); extern GLuint (GLAPIENTRY *mpglGenLists)(GLsizei);
--- a/libvo/matrixview.c Sat May 04 15:20:43 2013 +0000 +++ b/libvo/matrixview.c Sat May 04 15:20:45 2013 +0000 @@ -322,11 +322,7 @@ }; mpglViewport(0, 0, w, h); - mpglMatrixMode(GL_PROJECTION); mpglLoadMatrixf(matrix); - - mpglMatrixMode(GL_MODELVIEW); - mpglLoadIdentity(); }
--- a/libvo/vo_gl.c Sat May 04 15:20:43 2013 +0000 +++ b/libvo/vo_gl.c Sat May 04 15:20:45 2013 +0000 @@ -194,7 +194,6 @@ } else mpglViewport( 0, 0, x, y ); - mpglMatrixMode(GL_PROJECTION); ass_border_x = ass_border_y = 0; if (aspect_scaling() && use_aspect) { int new_w, new_h; @@ -214,9 +213,6 @@ } mpglLoadMatrixf(video_matrix); - mpglMatrixMode(GL_MODELVIEW); - mpglLoadIdentity(); - if (!scaled_osd) { #ifdef CONFIG_FREETYPE // adjust font size to display size @@ -843,7 +839,6 @@ 0, 0, 0, 0, -1, 1, 0, 1 }; - mpglMatrixMode(GL_PROJECTION); mpglLoadMatrixf(matrix); } mpglEnable(GL_BLEND);
--- a/libvo/vo_gl_tiled.c Sat May 04 15:20:43 2013 +0000 +++ b/libvo/vo_gl_tiled.c Sat May 04 15:20:45 2013 +0000 @@ -446,11 +446,7 @@ glViewport( 0, 0, x, y ); } - glMatrixMode(GL_PROJECTION); glLoadMatrixf(matrix); - - glMatrixMode(GL_MODELVIEW); - glLoadIdentity(); } static void draw_alpha(int x0,int y0, int w,int h, unsigned char* src, unsigned char *srca, int stride){