Minor fixes
This commit is contained in:
parent
32157503e8
commit
b7a7c84a89
|
|
@ -110,7 +110,7 @@ int main()
|
|||
textureBinding.shaderStageFlags = Nz::ShaderStageType::Fragment;
|
||||
textureBinding.type = Nz::ShaderBindingType::Texture;
|
||||
|
||||
std::shared_ptr<Nz::RenderPipelineLayout> renderPipelineLayout = device->InstantiateRenderPipelineLayout(pipelineLayoutInfo);
|
||||
std::shared_ptr<Nz::RenderPipelineLayout> renderPipelineLayout = device->InstantiateRenderPipelineLayout(std::move(pipelineLayoutInfo));
|
||||
|
||||
Nz::ShaderBindingPtr shaderBinding = renderPipelineLayout->AllocateShaderBinding();
|
||||
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -8,6 +8,7 @@
|
|||
#include <Nazara/OpenGLRenderer/OpenGLRenderPipelineLayout.hpp>
|
||||
#include <Nazara/OpenGLRenderer/OpenGLShaderStage.hpp>
|
||||
#include <Nazara/OpenGLRenderer/OpenGLTexture.hpp>
|
||||
#include <Nazara/OpenGLRenderer/OpenGLTextureSampler.hpp>
|
||||
#include <Nazara/OpenGLRenderer/Wrapper/Loader.hpp>
|
||||
#include <stdexcept>
|
||||
#include <Nazara/OpenGLRenderer/Debug.hpp>
|
||||
|
|
@ -74,6 +75,7 @@ namespace Nz
|
|||
|
||||
std::unique_ptr<TextureSampler> OpenGLDevice::InstantiateTextureSampler(const TextureSamplerInfo& params)
|
||||
{
|
||||
return {};
|
||||
return std::make_unique<OpenGLTextureSampler>(*this, params);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue