Commit 983dd84
committed
fix(gl): align glDrawBuffers indices with attachment points
GLES 3.0 strictly requires that the i-th buffer in `glDrawBuffers` corresponds to `GL_COLOR_ATTACHMENTi`.
This fixes a `GL_INVALID_OPERATION` (0x502) error by padding the draw buffers array with `GL_NONE` at index 0, ensuring `GL_COLOR_ATTACHMENT1` is correctly placed at index 1.1 parent 0cc5b88 commit 983dd84
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
131 | 131 | | |
132 | 132 | | |
133 | 133 | | |
134 | | - | |
| 134 | + | |
135 | 135 | | |
136 | 136 | | |
137 | 137 | | |
| |||
0 commit comments