Skip to content

mesa: check draw buffer completeness on glClearBufferfv/glClearBufferuiv

Dmitriy Nester requested to merge fix/ClearIncompleteBuffer into master

Tests for fix cases here link.

From OpenGL 4.6, section 9.4.4 "Effects of Framebuffer Completeness on
Framebuffer Operations", page 332:

"An INVALID_FRAMEBUFFER_OPERATION error is generated by attempts to render
to or read from a framebuffer which is not framebuffer complete.
This error is generated regardless of whether fragments are actually read
from or written to the framebuffer. For example, it is generated when a
rendering command is called and the framebuffer is incomplete, even if
RASTERIZER_DISCARD is enabled."
Edited by Dmitriy Nester

Merge request reports

Loading