浏览代码

generalize render-to-texture operations

David Rose 21 年之前
父节点
当前提交
e8bcb26e88
共有 2 个文件被更改,包括 3 次插入3 次删除
  1. 2 2
      panda/src/glxdisplay/glxGraphicsBuffer.cxx
  2. 1 1
      panda/src/glxdisplay/glxGraphicsBuffer.h

+ 2 - 2
panda/src/glxdisplay/glxGraphicsBuffer.cxx

@@ -39,8 +39,8 @@ TypeHandle glxGraphicsBuffer::_type_handle;
 glxGraphicsBuffer::
 glxGraphicsBuffer::
 glxGraphicsBuffer(GraphicsPipe *pipe, GraphicsStateGuardian *gsg,
 glxGraphicsBuffer(GraphicsPipe *pipe, GraphicsStateGuardian *gsg,
                   const string &name,
                   const string &name,
-                  int x_size, int y_size, bool want_texture) :
-  GraphicsBuffer(pipe, gsg, name, x_size, y_size, want_texture) 
+                  int x_size, int y_size) :
+  GraphicsBuffer(pipe, gsg, name, x_size, y_size) 
 {
 {
   glxGraphicsPipe *glx_pipe;
   glxGraphicsPipe *glx_pipe;
   DCAST_INTO_V(glx_pipe, _pipe);
   DCAST_INTO_V(glx_pipe, _pipe);

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

@@ -37,7 +37,7 @@ class glxGraphicsBuffer : public GraphicsBuffer {
 public:
 public:
   glxGraphicsBuffer(GraphicsPipe *pipe, GraphicsStateGuardian *gsg,
   glxGraphicsBuffer(GraphicsPipe *pipe, GraphicsStateGuardian *gsg,
                     const string &name,
                     const string &name,
-                    int x_size, int y_size, bool want_texture);
+                    int x_size, int y_size);
 
 
   virtual ~glxGraphicsBuffer();
   virtual ~glxGraphicsBuffer();