Minor stuff
This commit is contained in:
@@ -3,7 +3,6 @@
|
||||
// For conditions of distribution and use, see copyright notice in Config.hpp
|
||||
|
||||
#include <Nazara/OpenGLRenderer/OpenGLShaderStage.hpp>
|
||||
#include <Nazara/Core/Error.hpp>
|
||||
#include <Nazara/Core/MemoryView.hpp>
|
||||
#include <Nazara/OpenGLRenderer/Utils.hpp>
|
||||
#include <Nazara/Shader/GlslWriter.hpp>
|
||||
@@ -89,8 +88,6 @@ namespace Nz
|
||||
|
||||
std::string code = writer.Generate(shaderAst, states);
|
||||
|
||||
NazaraError(code);
|
||||
|
||||
m_shader.SetSource(code.data(), code.size());
|
||||
m_shader.Compile();
|
||||
}
|
||||
|
||||
@@ -30,7 +30,7 @@ namespace Nz::GL
|
||||
if (setup.indexBuffer != 0)
|
||||
m_context.BindBuffer(BufferTarget::ElementArray, setup.indexBuffer, true);
|
||||
|
||||
std::size_t bindingIndex = 0;
|
||||
GLuint bindingIndex = 0;
|
||||
for (const auto& attribOpt : setup.vertexAttribs)
|
||||
{
|
||||
if (attribOpt)
|
||||
|
||||
Reference in New Issue
Block a user