fix gles/egl bugs/issues in sungwoo's new patch

SVN revision: 65894
This commit is contained in:
Carsten Haitzler 2011-12-05 09:05:04 +00:00
parent 5967841988
commit 9f5a8809c7
1 changed files with 5 additions and 5 deletions

View File

@ -1230,10 +1230,10 @@ evgl_eglQueryString(EGLDisplay dpy, EGLint name)
return _sym_eglQueryString(dpy, name);
}
static void
evgl_eglCreateImage (void *a, void *b, GLenum c, void *d, const int *e)
static void *
evgl_eglCreateImage(void *a, void *b, GLenum c, void *d, const int *e)
{
_sym_eglCreateImage(a, b, c, d, e);
return _sym_eglCreateImage(a, b, c, d, e);
}
static unsigned int
@ -4063,7 +4063,7 @@ fpgl_glVertexAttribPointer(GLuint indx, GLint size, GLenum type, GLboolean norma
current_ctx->vertex_array[indx].type = type;
current_ctx->vertex_array[indx].normalized = normalized;
current_ctx->vertex_array[indx].stride = stride;
current_ctx->vertex_array[indx].pointer = ptr;
current_ctx->vertex_array[indx].pointer = (void *)ptr;
}
static void
@ -5509,7 +5509,7 @@ free_gl()
if (global_ctx)
{
ERR("Destroying global context...\n");
_sym_eglMakeCurrent(dpy, EGL_NO_SURFACE, EGL_NO_SURFACE, EGL_NO_CONTEXT);
_sym_eglMakeCurrent(global_dpy, EGL_NO_SURFACE, EGL_NO_SURFACE, EGL_NO_CONTEXT);
_sym_eglDestroyContext(global_dpy, global_ctx);
}
if (egl_lib_handle) dlclose(egl_lib_handle);