mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-09 01:28:57 +00:00
fix various instances of -1 being assigned to unsigned types
This commit is contained in:
parent
be7c6a0819
commit
e1a3e41bf3
15 changed files with 25 additions and 27 deletions
|
@ -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 =
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue