From: Frederic Dalleau Date: Tue, 3 Sep 2013 08:31:14 +0000 (+0200) Subject: VirtGL: Fix warnings in gloffscreen_wgl.c X-Git-Tag: Tizen_Studio_1.3_Release_p2.3.1~749^2~19 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5f820e89c8772717d0bb49123099df224590a217;p=sdk%2Femulator%2Fqemu.git VirtGL: Fix warnings in gloffscreen_wgl.c --- diff --git a/tizen/src/hw/gloffscreen_wgl.c b/tizen/src/hw/gloffscreen_wgl.c index ee2d0a7cb0..2d7819cd80 100644 --- a/tizen/src/hw/gloffscreen_wgl.c +++ b/tizen/src/hw/gloffscreen_wgl.c @@ -33,6 +33,7 @@ #include #include +#include #include #include #include "GL/wglext.h" @@ -101,8 +102,6 @@ PFNWGLGETEXTENSIONSSTRINGARBPROC wglGetExtensionsStringARB; /* ------------------------------------------------------------------------ */ -extern const char *glo_glXQueryExtensionsString(void); - extern void glo_surface_getcontents_readpixels(int formatFlags, int stride, int bpp, int width, int height, void *data, int noflip); @@ -150,7 +149,7 @@ int glo_sanity_test (void) { int glo_init(void) { WNDCLASSEX wcx; PIXELFORMATDESCRIPTOR pfd; - char *ext_str; + const char *ext_str; if (glo_inited) { printf( "gloffscreen already inited\n" ); diff --git a/tizen/src/hw/opengl_exec.c b/tizen/src/hw/opengl_exec.c index dda65975ab..67baf12d85 100644 --- a/tizen/src/hw/opengl_exec.c +++ b/tizen/src/hw/opengl_exec.c @@ -821,7 +821,6 @@ static int link_qsurface(ProcessState *process, GLState *glstate, ClientGLXDrawa { unbind_qsurface(qsurface->glstate, qsurface); glo_surface_update_context(qsurface->surface, glstate->context, 0); - } bind_qsurface(glstate, qsurface);