VirtGL: Fix warnings in gloffscreen_wgl.c
authorFrederic Dalleau <frederic.dalleau@intel.com>
Tue, 3 Sep 2013 08:31:14 +0000 (10:31 +0200)
committerjinhyung.jo <jinhyung.jo@samsung.com>
Wed, 11 Sep 2013 09:15:18 +0000 (18:15 +0900)
tizen/src/hw/gloffscreen_wgl.c
tizen/src/hw/opengl_exec.c

index ee2d0a7..2d7819c 100644 (file)
@@ -33,6 +33,7 @@
 
 #include <windows.h>
 #include <wingdi.h>
+#include <glib.h>
 #include <GL/gl.h>
 #include <GL/glext.h>
 #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" );
index dda6597..67baf12 100644 (file)
@@ -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);