瀏覽代碼

remove unused code

David Rose 21 年之前
父節點
當前提交
6b84223f19
共有 1 個文件被更改,包括 0 次插入8 次删除
  1. 0 8
      panda/src/display/displayRegion.cxx

+ 0 - 8
panda/src/display/displayRegion.cxx

@@ -525,14 +525,6 @@ get_screenshot(PNMImage &image) {
   
   
   window->make_current();
   window->make_current();
 
 
-  int components = 3;
-  Texture::Format format = Texture::F_rgb;
-
-  if ((gsg->get_properties().get_frame_buffer_mode() & FrameBufferProperties::FM_alpha) != 0) {
-    components = 4;
-    format = Texture::F_rgba;
-  }
-
   // Create a temporary texture to receive the framebuffer image.
   // Create a temporary texture to receive the framebuffer image.
   PT(Texture) tex = new Texture;
   PT(Texture) tex = new Texture;