mirror of
https://github.com/luanti-org/luanti.git
synced 2025-07-27 17:28:41 +00:00
Add support for glObjectLabel to aid debugging
This commit is contained in:
parent
d2004d32f6
commit
9554e3d43a
9 changed files with 56 additions and 12 deletions
|
@ -137,6 +137,9 @@ public:
|
|||
Images.clear();
|
||||
}
|
||||
|
||||
if (!name.empty())
|
||||
Driver->irrGlObjectLabel(GL_TEXTURE, TextureName, name.c_str());
|
||||
|
||||
Driver->getCacheHandler()->getTextureCache().set(0, prevTexture);
|
||||
|
||||
TEST_GL_ERROR(Driver);
|
||||
|
@ -247,6 +250,9 @@ public:
|
|||
break;
|
||||
}
|
||||
|
||||
if (!name.empty())
|
||||
Driver->irrGlObjectLabel(GL_TEXTURE, TextureName, name.c_str());
|
||||
|
||||
Driver->getCacheHandler()->getTextureCache().set(0, prevTexture);
|
||||
if (TEST_GL_ERROR(Driver)) {
|
||||
char msg[256];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue