浏览代码

Remove (comment out) hard coded tex->set_format(Texture::F_rgba); So that the texture format can be selected externally via Texture.set_format().

aignacio_sf 17 年之前
父节点
当前提交
1dc357a7f1
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      panda/src/glstuff/glGraphicsBuffer_src.cxx

+ 1 - 1
panda/src/glstuff/glGraphicsBuffer_src.cxx

@@ -339,7 +339,7 @@ bind_slot(bool rb_resize, Texture **attach, RenderTexturePlane slot, GLenum atta
         }
         }
       }
       }
     } else {
     } else {
-      tex->set_format(Texture::F_rgba);
+//      tex->set_format(Texture::F_rgba);
       TextureContext *tc = tex->prepare_now(glgsg->get_prepared_objects(), glgsg);
       TextureContext *tc = tex->prepare_now(glgsg->get_prepared_objects(), glgsg);
       nassertv(tc != (TextureContext *)NULL);
       nassertv(tc != (TextureContext *)NULL);
       CLP(TextureContext) *gtc = DCAST(CLP(TextureContext), tc);
       CLP(TextureContext) *gtc = DCAST(CLP(TextureContext), tc);