defold / defold/defold

Simplify enabling/disabling textures in the engine

Open
#9,032 0 comments 0 reactions 0 assignees View on GitHub
engine graphics task
Dominant language
C++
Stars
6.3k
Forks
455
Avg merge
2d 2h
Merged PRs (30d)
129

Description

**Task (REQUIRED):**
From a comment in the recent compute shader PR (https://github.com/defold/defold/pull/8975):

"Would be nice to have a dmGraphics::DisableTextures() to void any mishaps. Of course, then the opengl backend would have to keep track of the enabling of textures.

I just don't like the complexity involved in both the enable/disable. Perhaps they could be part of the same helper function: EnableOrDisableTextures(render_context_textures, count, true)
And inside that function check the "if (enable) { enable stuff} else { disable stuff }" in order to keep the loops the same."

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.