Browse Source

GCC 4.4 compatibility: needs explicit cast of anonymous typed enum.

Vladimír Vondruš 12 years ago
parent
commit
47b8fbd145
  1. 3
      src/Magnum/Implementation/BufferState.cpp

3
src/Magnum/Implementation/BufferState.cpp

@ -139,7 +139,8 @@ BufferState::BufferState(Context& context, std::vector<std::string>& extensions)
} }
void BufferState::reset() { void BufferState::reset() {
std::fill_n(bindings, TargetCount, State::DisengagedBinding); /* GCC 4.4 (?) needs explicit cast to GLuint */
std::fill_n(bindings, TargetCount, GLuint(State::DisengagedBinding));
} }
}} }}

Loading…
Cancel
Save