Commits

Ivan Vučica committed 6d5cc0f

Playing with rectangle texture storage.

  • Participants
  • Parent commits e59a0ea

Comments (0)

Files changed (3)

File FPManagedWindow.m

 #import "FPEventLoop.h"
 #import "FPWindowManager.h"
 
-#define SAFE_MODE 1
+#define SAFE_MODE 0
 
 #define USE_GLX1_3 1
 

File FPWindowManager.m

 #import "FPManagedWindow.h"
 
 #define VBOXCOMPAT 1 // virtualbox compatibility
-
+#define TEX2D 0 // tex2d or rectangle?
 static int attrListSgl[] = {
     GLX_RGBA, GLX_RED_SIZE, 4,
     GLX_GREEN_SIZE, 4,
 #if !VBOXCOMPAT
     GLX_DRAWABLE_TYPE, GLX_PIXMAP_BIT,
 #endif
+#if TEX_2D
     GLX_BIND_TO_TEXTURE_TARGETS_EXT, GLX_TEXTURE_2D_BIT_EXT,
+#else
+    GLX_BIND_TO_TEXTURE_TARGETS_EXT, GLX_TEXTURE_RECTANGLE_BIT_EXT,
+#endif
     GLX_Y_INVERTED_EXT, GLX_DONT_CARE,
     None
 };
 
 make
-#LIBGL_ALWAYS_INDIRECT=1 ./run-xephyr /usr/GNUstep/System/Tools/openapp ./Fireplace.app
-./run-xephyr /usr/GNUstep/System/Tools/openapp ./Fireplace.app
+LIBGL_ALWAYS_INDIRECT=1 ./run-xephyr /usr/GNUstep/System/Tools/openapp ./Fireplace.app
+#./run-xephyr /usr/GNUstep/System/Tools/openapp ./Fireplace.app
 
 #./run-xephyr &
 #DISPLAY=:3 /usr/bin/gdb ./Fireplace.app/Fireplace