Skip to content

Commit

Permalink
Fixed macOS compile errors
Browse files Browse the repository at this point in the history
  • Loading branch information
fo76utils committed Aug 21, 2024
1 parent a09f942 commit 13fe02a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/gl/glproperty.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion src/gl/renderer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 )
Expand Down

0 comments on commit 13fe02a

Please sign in to comment.