Minor fixes
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user