From 65fca47e16354f2c07557d7ec56371ca6d804eb3 Mon Sep 17 00:00:00 2001 From: aignacio_sf <> Date: Wed, 20 Dec 2006 19:08:16 +0000 Subject: [PATCH] Add some support for 16 and 32 bits per color channel. --- panda/src/glstuff/glGraphicsStateGuardian_src.cxx | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/panda/src/glstuff/glGraphicsStateGuardian_src.cxx b/panda/src/glstuff/glGraphicsStateGuardian_src.cxx index 728b3dc840..319cdaace2 100644 --- a/panda/src/glstuff/glGraphicsStateGuardian_src.cxx +++ b/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: