mirror of
https://github.com/panda3d/panda3d.git
synced 2025-09-29 16:20:11 -04:00
glgsg: fix multisampling for floating-point framebuffers
This commit is contained in:
parent
649372d333
commit
886d44d15d
@ -1181,6 +1181,8 @@ bind_slot_multisample(bool rb_resize, Texture **attach, RenderTexturePlane slot,
|
|||||||
default:
|
default:
|
||||||
if (_fb_properties.get_srgb_color()) {
|
if (_fb_properties.get_srgb_color()) {
|
||||||
gl_format = GL_SRGB8_ALPHA8;
|
gl_format = GL_SRGB8_ALPHA8;
|
||||||
|
} else if (_fb_properties.get_float_color()) {
|
||||||
|
gl_format = GL_RGBA32F_ARB;
|
||||||
} else {
|
} else {
|
||||||
gl_format = GL_RGBA;
|
gl_format = GL_RGBA;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user