Skip to content

Fix backEnd.currentVAO - #1513

Merged
VReaperV merged 1 commit into
DaemonEngine:masterfrom
VReaperV:fix-current-vao
Jan 24, 2025
Merged

Fix backEnd.currentVAO#1513
VReaperV merged 1 commit into
DaemonEngine:masterfrom
VReaperV:fix-current-vao

Conversation

@VReaperV

Copy link
Copy Markdown
Contributor

This was previously getting reset in R_Init(), so it was always 0 after a map was loaded. This also meant that the call to glDeleteVertexArrays() in RE_Shutdown() was silently erroring out if a map was loaded (or vid_restart used).

@slipher

slipher commented Jan 22, 2025

Copy link
Copy Markdown
Member

Is it even used for anything?

@VReaperV

Copy link
Copy Markdown
Contributor Author

Is it even used for anything?

Yeah, a VAO is required for any vertex specification commands (and by extension the typical rendering commands).

This was previously getting reset in `R_Init()`, so it was always 0 after a map was loaded. This also meant that the call to `glDeleteVertexArrays()`  in `RE_Shutdown()` was silently erroring out if a map was loaded (or `vid_restart` used).
@slipher

slipher commented Jan 24, 2025

Copy link
Copy Markdown
Member

LGTM

@VReaperV
VReaperV merged commit 8cc5260 into DaemonEngine:master Jan 24, 2025
@VReaperV
VReaperV deleted the fix-current-vao branch January 24, 2025 20:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants