mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-11-11 07:11:39 +00:00
polymost_setTexturePosSize() and polymost_setHalfTexelSize(): pass vec4f_t and vec2f_t by const reference instead of by value
git-svn-id: https://svn.eduke32.com/eduke32@7085 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
03332e8812
commit
1d71ea3fc0
2 changed files with 3 additions and 3 deletions
|
@ -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);
|
||||
|
|
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue