diff --git a/source/build/include/polymost.h b/source/build/include/polymost.h index 0f5dd5232..298108b1e 100644 --- a/source/build/include/polymost.h +++ b/source/build/include/polymost.h @@ -46,7 +46,7 @@ void polymost_drawrooms(void); void polymost_resetVertexPointers(void); void polymost_disableProgram(void); void polymost_resetProgram(void); -void polymost_setTexturePosSize(vec4f_t texturePosSize); +void polymost_setTexturePosSize(vec4f_t const &texturePosSize); void polymost_setFogEnabled(char fogEnabled); void polymost_useColorOnly(char useColorOnly); void polymost_usePaletteIndexing(char usePaletteIndexing); diff --git a/source/build/src/polymost.cpp b/source/build/src/polymost.cpp index d95bc9752..afd38c208 100644 --- a/source/build/src/polymost.cpp +++ b/source/build/src/polymost.cpp @@ -614,7 +614,7 @@ static void polymost_setCurrentShaderProgram(uint32_t programID) glUniform1f(polymost1UseGlowMappingLoc, polymost1UseGlowMapping); } -void polymost_setTexturePosSize(vec4f_t texturePosSize) +void polymost_setTexturePosSize(vec4f_t const &texturePosSize) { if (currentShaderProgramID == polymost1CurrentShaderProgramID) { @@ -623,7 +623,7 @@ void polymost_setTexturePosSize(vec4f_t texturePosSize) } } -static void polymost_setHalfTexelSize(vec2f_t halfTexelSize) +static inline void polymost_setHalfTexelSize(vec2f_t const &halfTexelSize) { if (currentShaderProgramID == polymost1CurrentShaderProgramID) {