Commit 5367b100 authored by Jan Möbius's avatar Jan Möbius
Browse files

Compiler specific ... C++0x or gnu++0x Syntax -> Not platform independent



git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@9797 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 368cf4e9
......@@ -1287,8 +1287,16 @@ draw_textured_nurbs( GLState& _state)
// control points of 2d texture ((0,0), (0,1), (1,0), (1,1) )
GLfloat tcoords[8] = {0.0, 0.0, 0.0, 1.0, 1.0, 0.0, 1.0, 1.0};
if( arb_texture_repeat_ && arb_texture_used_ )
tcoords = {0.0, 0.0, 0.0, arb_texture_repeat_v_*(maxv-minv), arb_texture_repeat_u_*(maxu-minu), 0.0, arb_texture_repeat_u_*(maxu-minu), arb_texture_repeat_v_*(maxv-minv)};
if( arb_texture_repeat_ && arb_texture_used_ ) {
tcoords[0] = 0.0;
tcoords[1] = 0.0;
tcoords[2] = 0.0;
tcoords[3] = arb_texture_repeat_v_*(maxv-minv);
tcoords[4] = arb_texture_repeat_u_*(maxu-minu);
tcoords[5] = 0.0;
tcoords[6] = arb_texture_repeat_u_*(maxu-minu);
tcoords[7] = arb_texture_repeat_v_*(maxv-minv);
}
// knots of domain, over which tcoords shall be linearly interpolated
GLfloat tknots[4] = {minu, minu, maxu, maxu};
......
Markdown is supported
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