|
@@ -37,7 +37,7 @@ GL::Attribute GL::Attribute::newFloat(int count) {
|
|
|
}
|
|
|
|
|
|
GL::Attribute GL::Attribute::newColor(int count) {
|
|
|
- return GL::Attribute(count, sizeof(float), GL_FLOAT, false);
|
|
|
+ return GL::Attribute(count, sizeof(unsigned char), GL_UNSIGNED_BYTE, true);
|
|
|
}
|
|
|
|
|
|
GL::Attribute GL::Attribute::newDummy() {
|
|
@@ -321,7 +321,7 @@ void GL::drawBuffers(int length, ColorAttachment* c) {
|
|
|
|
|
|
bool GL::printFramebufferError() {
|
|
|
GLenum error = glCheckFramebufferStatus(GL_FRAMEBUFFER);
|
|
|
- if(error == GL_FRAMEBUFFER_COMPLETE) {
|
|
|
+ if(error != GL_FRAMEBUFFER_COMPLETE) {
|
|
|
std::cout << "framebuffer error: " << error << '\n';
|
|
|
return true;
|
|
|
}
|