m3g/m3gcore11/src/m3g_rendercontext.c
changeset 36 01a6848ebfd7
parent 0 5d03bc08d59c
child 26 15986eb6c500
child 45 36b2e23a8629
--- a/m3g/m3gcore11/src/m3g_rendercontext.c	Tue Feb 02 01:47:50 2010 +0200
+++ b/m3g/m3gcore11/src/m3g_rendercontext.c	Fri Apr 16 16:21:04 2010 +0300
@@ -69,7 +69,11 @@
     EGLSurface handle;
     M3Gbitmask bufferBits;
     M3Gbitmask type;
+    M3Guint width;
+    M3Guint height;
+    M3Guint format;
     M3Guint targetHandle;
+    void* pixels;
     M3Guint lastUseTime;
 } GLSurfaceRecord;
 #endif /*!M3G_NGL_CONTEXT_API*/
@@ -82,12 +86,9 @@
     M3Gbitmask type;
     M3GPixelFormat format;
     M3Gint width, height;
-#   if defined(M3G_NGL_CONTEXT_API)
     M3Guint stride;
     /*@shared@*/ void *pixels, *lockedPixels;
-#   else
     EGLSurface surface;
-#   endif
     M3Guint handle;
     M3Guint userData;
     
@@ -1324,7 +1325,7 @@
      * hog resources */
 #   if !defined(M3G_NGL_CONTEXT_API)
     if (ctx->target.type != SURFACE_EGL) {
-    m3gSwapBuffers(ctx->target.surface);
+//    m3gSwapBuffers(ctx->target.surface);
     }
 #   endif
     m3gCollectGLObjects(M3G_INTERFACE(ctx));