Browse Source

Fix compilation on Emscripten.

pull/51/head
Vladimír Vondruš 13 years ago
parent
commit
c5b80e76d9
  1. 4
      src/Mesh.h

4
src/Mesh.h

@ -683,7 +683,7 @@ class MAGNUM_EXPORT Mesh: public AbstractObject {
GLint(attribute.components()), GLint(attribute.components()),
GLenum(attribute.dataType()), GLenum(attribute.dataType()),
bool(attribute.dataOptions() & AbstractShaderProgram::Attribute<location, T>::DataOption::Normalized), bool(attribute.dataOptions() & AbstractShaderProgram::Attribute<location, T>::DataOption::Normalized),
offset+i*attribute.vectorSize(), GLintptr(offset+i*attribute.vectorSize()),
stride stride
}); });
} }
@ -708,7 +708,7 @@ class MAGNUM_EXPORT Mesh: public AbstractObject {
location+i, location+i,
GLint(attribute.components()), GLint(attribute.components()),
GLenum(attribute.dataType()), GLenum(attribute.dataType()),
offset+i*attribute.vectorSize(), GLintptr(offset+i*attribute.vectorSize()),
stride stride
}); });
} }

Loading…
Cancel
Save