diff --git a/src/gl/glproperty.cpp b/src/gl/glproperty.cpp index ff35247f..071ca495 100644 --- a/src/gl/glproperty.cpp +++ b/src/gl/glproperty.cpp @@ -944,7 +944,7 @@ bool BSShaderLightingProperty::getSFTexture( int & texunit, int & texUniform, Fl if ( uvStream && uvStream->textureAddressMode ) { if ( uvStream->textureAddressMode == 3 ) { // this may be incorrect - glTexParameterfv( GL_TEXTURE_2D, GL_TEXTURE_BORDER_COLOR, &(c.v[0]) ); + glTexParameterfv( GL_TEXTURE_2D, GL_TEXTURE_BORDER_COLOR, &(c[0]) ); clampMode = TexClampMode::BORDER_S_BORDER_T; } else if ( uvStream->textureAddressMode == 2 ) clampMode = TexClampMode::MIRRORED_S_MIRRORED_T; diff --git a/src/gl/renderer.cpp b/src/gl/renderer.cpp index 090b7126..7ecf08be 100644 --- a/src/gl/renderer.cpp +++ b/src/gl/renderer.cpp @@ -857,7 +857,7 @@ void Renderer::Program::uni1fv_l( int l, const float * x, size_t n ) void Renderer::Program::uni4fv_l( int l, const FloatVector4 * x, size_t n ) { - f->glUniform4fv( l, GLsizei(n), &(x[0].v[0]) ); + f->glUniform4fv( l, GLsizei(n), &(x[0][0]) ); } void Renderer::Program::uniSampler_l( int l, int firstTextureUnit, int textureCnt, int arraySize )