Browse Source

remove unused code

David Rose 21 years ago
parent
commit
6b84223f19
1 changed files with 0 additions and 8 deletions
  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();
 
-  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.
   PT(Texture) tex = new Texture;