Commit fd859ed6 authored by Isaak Lim's avatar Isaak Lim
Browse files

switched to quint32 for the nearestPowerOfTwo function in order to avoid Windows errors

refs #269

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@14683 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 97cef418
...@@ -189,9 +189,9 @@ draw(GLState& _state, const DrawModes::DrawMode& /*_drawMode*/) ...@@ -189,9 +189,9 @@ draw(GLState& _state, const DrawModes::DrawMode& /*_drawMode*/)
//---------------------------------------------------------------------------- //----------------------------------------------------------------------------
uint32_t quint32
TextNode::nearestPowerOfTwo(uint32_t num) { TextNode::nearestPowerOfTwo(quint32 num) {
uint32_t n = num > 0 ? num - 1 : 0; quint32 n = num > 0 ? num - 1 : 0;
n |= n >> 1; n |= n >> 1;
n |= n >> 2; n |= n >> 2;
......
...@@ -156,7 +156,7 @@ protected: ...@@ -156,7 +156,7 @@ protected:
static void UpdateFont(); static void UpdateFont();
private: private:
static uint32_t nearestPowerOfTwo(uint32_t num); static quint32 nearestPowerOfTwo(quint32 num);
void updateVBO(); void updateVBO();
void bindVBO(); void bindVBO();
void unbindVBO(); void unbindVBO();
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment