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

@@ -39,7 +39,7 @@ namespace Nz::GL
context.glSamplerParameteriv(m_objectId, pname, param);
}
inline GLuint Sampler::CreateHelper(OpenGLDevice& device, const Context& context)
inline GLuint Sampler::CreateHelper(OpenGLDevice& /*device*/, const Context& context)
{
GLuint sampler = 0;
context.glGenSamplers(1U, &sampler);

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)