Skip to content

Fix ChunkMesh OpenGL compatibility build errors#77

Merged
NearDrive merged 1 commit intocodex/devfrom
codex/fix-bug-in-the-codebase
Feb 5, 2026
Merged

Fix ChunkMesh OpenGL compatibility build errors#77
NearDrive merged 1 commit intocodex/devfrom
codex/fix-bug-in-the-codebase

Conversation

@NearDrive
Copy link
Copy Markdown
Owner

Motivation

  • Prevent build failures on environments where the bundled glad headers are incomplete and do not expose GL_STREAM_DRAW or where glad_glBufferSubData is unavailable.

Description

  • In src/voxel/ChunkMesh.cpp add a fallback #ifndef GL_STREAM_DRAW definition and replace the orphan-path glad_glBufferSubData calls with glad_glBufferData uploads to preserve orphaning semantics while avoiding missing-symbol issues.

Testing

  • Ran cmake -S . -B build && cmake --build build -j4, which aborted when FetchContent failed to clone GLFW due to network restrictions (CONNECT tunnel failed, response 403), so a full build could not be completed in this environment.

Codex Task

@NearDrive NearDrive merged commit 88e86f0 into codex/dev Feb 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant