Skip to content

OPENGL: Terrain doesnt render correctly#1711

Merged
Azaezel merged 5 commits intoTorqueGameEngines:developmentfrom
marauder2k9-torque:GLFix-BlackTerrain-issue
Apr 11, 2026
Merged

OPENGL: Terrain doesnt render correctly#1711
Azaezel merged 5 commits intoTorqueGameEngines:developmentfrom
marauder2k9-torque:GLFix-BlackTerrain-issue

Conversation

@marauder2k7
Copy link
Copy Markdown
Contributor

The core of this issue was the unlock on the GFXGLTextureObject

Few other bug fixes around setting a texture binding to 0, notice in clear function we now also clear the glprogram and the buffers. This seems to fix most of the warnings around id 131204

This warning was triggered every frame, now it just triggers when a shader expects a texture but none is active.

The core of this issue was the unlock on the GFXGLTextureObject

Few other bug fixes around setting a texture binding to 0, notice in clear function we now also clear the glprogram and the buffers. This seems to fix most of the warnings around id 131204

This warning was triggered every frame, now it just triggers when a shader expects a texture but none is active.
@marauder2k7 marauder2k7 changed the title Terrain doesnt render correctly OPENGL: Terrain doesnt render correctly Apr 10, 2026
clearing the active program caused issues during a target bake as we call glClear after setting the shader etc. As this warning id 131204 seems to be a product of doing this, everything i read up on it says it is safe to silence it.
update bitmapPng reading from libpng to have context in warnings and errors, also add a bit of a better structure around the read and write functions.

Interlaced PNG's were never being accounted for before so add the png_set_interlace_handling for interlaced pngs
@Azaezel Azaezel merged commit 12dddd0 into TorqueGameEngines:development Apr 11, 2026
3 checks passed
@marauder2k7 marauder2k7 deleted the GLFix-BlackTerrain-issue branch April 13, 2026 14:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants