Browse Source

fix compilation errors with new buffer merge

David Rose 20 years ago
parent
commit
6335ebe61c

+ 1 - 1
panda/src/glxdisplay/glxGraphicsPipe.cxx

@@ -280,7 +280,7 @@ make_output(const string &name,
             GraphicsStateGuardian *gsg,
             GraphicsStateGuardian *gsg,
             GraphicsOutput *host,
             GraphicsOutput *host,
             int retry,
             int retry,
-            bool precertify) {
+            bool &precertify) {
   
   
   if (!_is_valid) {
   if (!_is_valid) {
     return NULL;
     return NULL;

+ 1 - 1
panda/src/glxdisplay/glxGraphicsPipe.h

@@ -119,7 +119,7 @@ protected:
                                          GraphicsStateGuardian *gsg,
                                          GraphicsStateGuardian *gsg,
                                          GraphicsOutput *host,
                                          GraphicsOutput *host,
                                          int retry,
                                          int retry,
-                                         bool precertify);
+                                         bool &precertify);
 
 
 private:
 private:
 #ifdef HAVE_GLXFBCONFIG
 #ifdef HAVE_GLXFBCONFIG

+ 5 - 1
panda/src/glxdisplay/glxGraphicsStateGuardian.cxx

@@ -120,7 +120,8 @@ reset() {
     software = true;
     software = true;
   }
   }
 
 
-  FrameBufferProperties properties = get_properties();
+  // FIXME: should these properties be taken from the window?
+  FrameBufferProperties properties = get_default_properties();
   int frame_buffer_mode = properties.get_frame_buffer_mode();
   int frame_buffer_mode = properties.get_frame_buffer_mode();
 
 
   // If "Mesa" is present, assume software.  However, if "Mesa DRI" is
   // If "Mesa" is present, assume software.  However, if "Mesa DRI" is
@@ -150,10 +151,13 @@ reset() {
     frame_buffer_mode = (frame_buffer_mode | FrameBufferProperties::FM_hardware) & ~FrameBufferProperties::FM_software;
     frame_buffer_mode = (frame_buffer_mode | FrameBufferProperties::FM_hardware) & ~FrameBufferProperties::FM_software;
   }
   }
 
 
+  // FIXME: we need a place to store this now.
+  /*
   // Update the GSG's record to indicate whether we believe it is a
   // Update the GSG's record to indicate whether we believe it is a
   // hardware or software renderer.
   // hardware or software renderer.
   properties.set_frame_buffer_mode(frame_buffer_mode);
   properties.set_frame_buffer_mode(frame_buffer_mode);
   set_properties(properties);
   set_properties(properties);
+  */
 }
 }
 
 
 ////////////////////////////////////////////////////////////////////
 ////////////////////////////////////////////////////////////////////

+ 1 - 1
panda/src/glxdisplay/glxGraphicsWindow.cxx

@@ -50,7 +50,7 @@ glxGraphicsWindow(GraphicsPipe *pipe,
                   int x_size, int y_size, int flags,
                   int x_size, int y_size, int flags,
                   GraphicsStateGuardian *gsg,
                   GraphicsStateGuardian *gsg,
                   GraphicsOutput *host) :
                   GraphicsOutput *host) :
-  GraphicsWindow(pipe, name, x_size, y_size, flags, gsg, host)
+  GraphicsWindow(pipe, name, properties, x_size, y_size, flags, gsg, host)
 {
 {
   glxGraphicsPipe *glx_pipe;
   glxGraphicsPipe *glx_pipe;
   DCAST_INTO_V(glx_pipe, _pipe);
   DCAST_INTO_V(glx_pipe, _pipe);

+ 1 - 1
panda/src/mesadisplay/osMesaGraphicsPipe.cxx

@@ -144,7 +144,7 @@ make_output(const string &name,
         ((flags&BF_require_window)!=0)||
         ((flags&BF_require_window)!=0)||
         ((flags&BF_size_track_host)!=0)||
         ((flags&BF_size_track_host)!=0)||
         ((flags&BF_can_bind_every)!=0)||
         ((flags&BF_can_bind_every)!=0)||
-        (properties != gsg->get_default_properties()) {
+        (properties != gsg->get_default_properties())) {
       return NULL;
       return NULL;
     }
     }
     return new OsMesaGraphicsBuffer(this, name, properties,
     return new OsMesaGraphicsBuffer(this, name, properties,

+ 2 - 2
panda/src/mesadisplay/osMesaGraphicsPipe.h

@@ -47,14 +47,14 @@ public:
 
 
 protected:
 protected:
   virtual PT(GraphicsStateGuardian) make_gsg(const FrameBufferProperties &properties,
   virtual PT(GraphicsStateGuardian) make_gsg(const FrameBufferProperties &properties,
-                                             GraphicsStateGuardian *share_with);
+                                             GraphicsStateGuardian *share_with);  
   virtual PT(GraphicsOutput) make_output(const string &name,
   virtual PT(GraphicsOutput) make_output(const string &name,
                                          const FrameBufferProperties &properties,
                                          const FrameBufferProperties &properties,
                                          int x_size, int y_size, int flags,
                                          int x_size, int y_size, int flags,
                                          GraphicsStateGuardian *gsg,
                                          GraphicsStateGuardian *gsg,
                                          GraphicsOutput *host,
                                          GraphicsOutput *host,
                                          int retry,
                                          int retry,
-                                         bool precertify);
+                                         bool &precertify);
 
 
 private:
 private: