mirror of
https://github.com/panda3d/panda3d.git
synced 2025-09-29 00:06:44 -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:
|
||||
if (_fb_properties.get_srgb_color()) {
|
||||
gl_format = GL_SRGB8_ALPHA8;
|
||||
} else if (_fb_properties.get_float_color()) {
|
||||
gl_format = GL_RGBA32F_ARB;
|
||||
} else {
|
||||
gl_format = GL_RGBA;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user