Forgot to actually compile the shader :P
This commit is contained in:
@@ -17,7 +17,13 @@ const ErrorCodeMap ProgramError::ErrorMessages = {
|
||||
|
||||
Shader::Shader(GLenum target_, const std::string& source_) : target(target_) {
|
||||
declare();
|
||||
const char* src_ptr= source_.data();
|
||||
glShaderSource(_id, 1, &src_ptr, NULL);
|
||||
glCompileShader(_id);
|
||||
_success = status(GL_COMPILE_STATUS);
|
||||
if (!_success) {
|
||||
WARN(log(), 0x0FE);
|
||||
}
|
||||
}
|
||||
|
||||
Shader::Shader(Shader&& cpy) : target(cpy.target) {
|
||||
@@ -49,7 +55,7 @@ Program::Program(SharedVector<Shader> shaders_) {
|
||||
glLinkProgram(_id);
|
||||
_success = status(GL_LINK_STATUS);
|
||||
if (!_success) {
|
||||
WARN(log(), 0x01);
|
||||
WARN(log(), 0x0FE);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user