[MPlayer-cvslog] r36308 - trunk/libvo/gl_common.c
reimar
subversion at mplayerhq.hu
Sun Jun 9 11:46:20 CEST 2013
Author: reimar
Date: Sun Jun 9 11:46:20 2013
New Revision: 36308
Log:
SwapInterval support for GLES/EGL.
Modified:
trunk/libvo/gl_common.c
Modified: trunk/libvo/gl_common.c
==============================================================================
--- trunk/libvo/gl_common.c Sun Jun 9 11:40:27 2013 (r36307)
+++ trunk/libvo/gl_common.c Sun Jun 9 11:46:20 2013 (r36308)
@@ -2422,6 +2422,10 @@ static void GLAPIENTRY dummy_color(GLuby
static void GLAPIENTRY dummy_texenvi(GLenum t, GLenum p, GLint v) {
}
+static int GLAPIENTRY SwapInterval_egl(int i) {
+ return eglSwapInterval(eglDisplay, i);
+}
+
static int setGlWindow_egl(MPGLContext *ctx)
{
static const EGLint cfg_attribs[] = { EGL_RENDERABLE_TYPE, EGL_OPENGL_ES2_BIT, EGL_NONE };
@@ -2538,6 +2542,7 @@ static int setGlWindow_egl(MPGLContext *
getFunctions(eglgpa, eglQueryString(eglDisplay, EGL_EXTENSIONS));
mpglBegin = NULL;
mpglDrawBuffer = NULL;
+ mpglSwapInterval = SwapInterval_egl;
gpu_def_sl_program = new_gpu_program();
gpu_yuv_sl_program = new_gpu_program();
More information about the MPlayer-cvslog
mailing list