浏览代码

fix offscreen rendering with true offscreen buffer

David Rose 21 年之前
父节点
当前提交
1becc5edd4
共有 1 个文件被更改,包括 1 次插入0 次删除
  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;
   _y_size = y_size;
   _has_size = true;
+  _default_display_region->compute_pixels(_x_size, _y_size);
   _open_request = OR_none;
 }