Browse Source

Add some support for 16 and 32 bits per color channel.

aignacio_sf 19 years ago
parent
commit
65fca47e16
1 changed files with 7 additions and 0 deletions
  1. 7 0
      panda/src/glstuff/glGraphicsStateGuardian_src.cxx

+ 7 - 0
panda/src/glstuff/glGraphicsStateGuardian_src.cxx

@@ -4817,6 +4817,8 @@ get_external_image_format(Texture *tex) const {
   case Texture::F_rgba5:
   case Texture::F_rgba8:
   case Texture::F_rgba12:
+  case Texture::F_rgba16:
+  case Texture::F_rgba32:
     return _supports_bgr ? GL_BGRA : GL_RGBA;
   case Texture::F_luminance:
     return GL_LUMINANCE;
@@ -4970,6 +4972,11 @@ get_internal_image_format(Texture *tex) const {
   case Texture::F_rgba12:
     return GL_RGBA12;
 
+  case Texture::F_rgba16:
+    return GL_RGBA16F_ARB;
+  case Texture::F_rgba32:
+    return GL_RGBA32F_ARB;
+
   case Texture::F_rgb:
     return GL_RGB;
   case Texture::F_rgb5: