Minor fixes

This commit is contained in:
Lynix
2020-04-26 18:22:07 +02:00
parent 32157503e8
commit b7a7c84a89
4 changed files with 8 additions and 4 deletions

View File

@@ -11,7 +11,9 @@ namespace Nz::GL
inline void Shader::Compile()
{
assert(m_objectId);
m_device->GetReferenceContext().glCompileShader(m_objectId);
const Context& context = EnsureDeviceContext();
context.glCompileShader(m_objectId);
}
inline bool Shader::GetCompilationStatus(std::string* error)