mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 14:19:46 -06:00
fix various instances of -1 being assigned to unsigned types
This commit is contained in:
@ -370,9 +370,9 @@ TextureCache::TextureCache()
|
||||
{
|
||||
CompileShaders();
|
||||
|
||||
s_ActiveTexture = -1;
|
||||
s_ActiveTexture = UINT32_MAX;
|
||||
for (auto& gtex : s_Textures)
|
||||
gtex = -1;
|
||||
gtex = UINT32_MAX;
|
||||
|
||||
if (g_ActiveConfig.backend_info.bSupportsPaletteConversion)
|
||||
{
|
||||
@ -519,8 +519,8 @@ bool TextureCache::CompileShaders()
|
||||
|
||||
s_ColorMatrixUniform = glGetUniformLocation(s_ColorMatrixProgram.glprogid, "colmat");
|
||||
s_DepthMatrixUniform = glGetUniformLocation(s_DepthMatrixProgram.glprogid, "colmat");
|
||||
s_ColorCbufid = -1;
|
||||
s_DepthCbufid = -1;
|
||||
s_ColorCbufid = UINT32_MAX;
|
||||
s_DepthCbufid = UINT32_MAX;
|
||||
|
||||
s_ColorCopyPositionUniform = glGetUniformLocation(s_ColorCopyProgram.glprogid, "copy_position");
|
||||
s_ColorMatrixPositionUniform =
|
||||
|
Reference in New Issue
Block a user