mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 10:22:45 -04:00
parent
08572f3c38
commit
6dcaab2d3a
@ -1198,7 +1198,11 @@ bind_slot_multisample(bool rb_resize, Texture **attach, RenderTexturePlane slot,
|
||||
if (_fb_properties.get_srgb_color()) {
|
||||
gl_format = GL_SRGB8_ALPHA8;
|
||||
} else if (_fb_properties.get_float_color()) {
|
||||
gl_format = GL_RGBA32F_ARB;
|
||||
if (_fb_properties.get_color_bits() > 16 * 3) {
|
||||
gl_format = GL_RGBA32F_ARB;
|
||||
} else {
|
||||
gl_format = GL_RGBA16F_ARB;
|
||||
}
|
||||
} else {
|
||||
gl_format = GL_RGBA;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user