Browse Source

glgsg: fix multisampling for floating-point framebuffers

rdb 7 years ago
parent
commit
886d44d15d
1 changed files with 2 additions and 0 deletions
  1. 2 0
      panda/src/glstuff/glGraphicsBuffer_src.cxx

+ 2 - 0
panda/src/glstuff/glGraphicsBuffer_src.cxx

@@ -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;
         }
         }