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

This commit is contained in:
aignacio_sf 2006-12-20 19:08:16 +00:00
parent 4d40265e24
commit 65fca47e16
1 changed files with 7 additions and 0 deletions

View File

@ -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: