OpenGL: Implement textures

This commit is contained in:
Lynix
2020-04-19 15:33:56 +02:00
parent 349e915e10
commit b4b15f826d
12 changed files with 227 additions and 298 deletions

View File

@@ -36,6 +36,15 @@ namespace Nz::GL
{
return m_supportedExtensions.find(extension) != m_supportedExtensions.end();
}
inline void Context::NotifyTextureDestruction(GLuint texture) const
{
for (GLuint& boundTexture : m_state.boundTextures)
{
if (boundTexture == texture)
boundTexture = 0;
}
}
}
#include <Nazara/OpenGLRenderer/DebugOff.hpp>