Browse Source

fix offscreen rendering with true offscreen buffer

David Rose 21 years ago
parent
commit
1becc5edd4
1 changed files with 1 additions and 0 deletions
  1. 1 0
      panda/src/display/graphicsBuffer.cxx

+ 1 - 0
panda/src/display/graphicsBuffer.cxx

@@ -49,6 +49,7 @@ GraphicsBuffer(GraphicsPipe *pipe, GraphicsStateGuardian *gsg,
   _x_size = x_size;
   _x_size = x_size;
   _y_size = y_size;
   _y_size = y_size;
   _has_size = true;
   _has_size = true;
+  _default_display_region->compute_pixels(_x_size, _y_size);
   _open_request = OR_none;
   _open_request = OR_none;
 }
 }