GPU: Fix uninitialized variable which created asan warning / errors
This wasn't really a problem since these are set on first bind or creation. The test `if (enabled_srgb && srgb_) {` was depending on that variable that in certain case, might not have been initialized (because of lazy init).
This commit is contained in:
parent
6da7436cce
commit
945d108ab8
|
@ -34,9 +34,9 @@ class GLFrameBuffer : public FrameBuffer {
|
|||
/** Copy of the GL state. Contains ONLY color attachments enums for slot binding. */
|
||||
GLenum gl_attachments_[GPU_FB_MAX_COLOR_ATTACHMENT] = {0};
|
||||
/** Internal frame-buffers are immutable. */
|
||||
bool immutable_;
|
||||
bool immutable_ = false;
|
||||
/** True is the frame-buffer has its first color target using the GPU_SRGB8_A8 format. */
|
||||
bool srgb_;
|
||||
bool srgb_ = false;
|
||||
/** True is the frame-buffer has been bound using the GL_FRAMEBUFFER_SRGB feature. */
|
||||
bool enabled_srgb_ = false;
|
||||
|
||||
|
|
Loading…
Reference in New Issue