mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-15 09:25:37 +02:00
Add support for glObjectLabel to aid debugging
This commit is contained in:
@@ -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];
|
||||
|
Reference in New Issue
Block a user