mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-01 01:07:51 -04:00
glgsg: Fix ability to get r11g11b10 float renderbuffer
This commit is contained in:
parent
4a7d03d9b1
commit
eee1426e37
@ -954,10 +954,17 @@ bind_slot(int layer, bool rb_resize, Texture **attach, RenderTexturePlane slot,
|
|||||||
}
|
}
|
||||||
} else if (_fb_properties.get_float_color()) {
|
} else if (_fb_properties.get_float_color()) {
|
||||||
// 16-bit floating-point.
|
// 16-bit floating-point.
|
||||||
if (_fb_properties.get_blue_bits() > 0 ||
|
if (_fb_properties.get_blue_bits() > 10 ||
|
||||||
_fb_properties.get_color_bits() == 1 ||
|
_fb_properties.get_color_bits() == 1 ||
|
||||||
_fb_properties.get_color_bits() > 16 * 2) {
|
_fb_properties.get_color_bits() > 32) {
|
||||||
gl_format = GL_RGB16F;
|
gl_format = GL_RGB16F;
|
||||||
|
} else if (_fb_properties.get_blue_bits() > 0) {
|
||||||
|
if (_fb_properties.get_red_bits() > 11 ||
|
||||||
|
_fb_properties.get_green_bits() > 11) {
|
||||||
|
gl_format = GL_RGB16F;
|
||||||
|
} else {
|
||||||
|
gl_format = GL_R11F_G11F_B10F;
|
||||||
|
}
|
||||||
} else if (_fb_properties.get_green_bits() > 0 ||
|
} else if (_fb_properties.get_green_bits() > 0 ||
|
||||||
_fb_properties.get_color_bits() > 16) {
|
_fb_properties.get_color_bits() > 16) {
|
||||||
gl_format = GL_RG16F;
|
gl_format = GL_RG16F;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user