diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/video_core/renderer_opengl/pica_to_gl.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/video_core/renderer_opengl/pica_to_gl.h b/src/video_core/renderer_opengl/pica_to_gl.h index 3d6c4e9e5..fd3617d77 100644 --- a/src/video_core/renderer_opengl/pica_to_gl.h +++ b/src/video_core/renderer_opengl/pica_to_gl.h | |||
| @@ -22,7 +22,7 @@ inline GLenum TextureFilterMode(Pica::Regs::TextureConfig::TextureFilter mode) { | |||
| 22 | }; | 22 | }; |
| 23 | 23 | ||
| 24 | // Range check table for input | 24 | // Range check table for input |
| 25 | if (mode >= ARRAY_SIZE(filter_mode_table)) { | 25 | if (static_cast<size_t>(mode) >= ARRAY_SIZE(filter_mode_table)) { |
| 26 | LOG_CRITICAL(Render_OpenGL, "Unknown texture filtering mode %d", mode); | 26 | LOG_CRITICAL(Render_OpenGL, "Unknown texture filtering mode %d", mode); |
| 27 | UNREACHABLE(); | 27 | UNREACHABLE(); |
| 28 | 28 | ||
| @@ -51,7 +51,7 @@ inline GLenum WrapMode(Pica::Regs::TextureConfig::WrapMode mode) { | |||
| 51 | }; | 51 | }; |
| 52 | 52 | ||
| 53 | // Range check table for input | 53 | // Range check table for input |
| 54 | if (mode >= ARRAY_SIZE(wrap_mode_table)) { | 54 | if (static_cast<size_t>(mode) >= ARRAY_SIZE(wrap_mode_table)) { |
| 55 | LOG_CRITICAL(Render_OpenGL, "Unknown texture wrap mode %d", mode); | 55 | LOG_CRITICAL(Render_OpenGL, "Unknown texture wrap mode %d", mode); |
| 56 | UNREACHABLE(); | 56 | UNREACHABLE(); |
| 57 | 57 | ||
| @@ -91,7 +91,7 @@ inline GLenum BlendFunc(Pica::Regs::BlendFactor factor) { | |||
| 91 | }; | 91 | }; |
| 92 | 92 | ||
| 93 | // Range check table for input | 93 | // Range check table for input |
| 94 | if ((unsigned)factor >= ARRAY_SIZE(blend_func_table)) { | 94 | if (static_cast<size_t>(factor) >= ARRAY_SIZE(blend_func_table)) { |
| 95 | LOG_CRITICAL(Render_OpenGL, "Unknown blend factor %d", factor); | 95 | LOG_CRITICAL(Render_OpenGL, "Unknown blend factor %d", factor); |
| 96 | UNREACHABLE(); | 96 | UNREACHABLE(); |
| 97 | 97 | ||
| @@ -122,7 +122,7 @@ inline GLenum LogicOp(Pica::Regs::LogicOp op) { | |||
| 122 | }; | 122 | }; |
| 123 | 123 | ||
| 124 | // Range check table for input | 124 | // Range check table for input |
| 125 | if ((unsigned)op >= ARRAY_SIZE(logic_op_table)) { | 125 | if (static_cast<size_t>(op) >= ARRAY_SIZE(logic_op_table)) { |
| 126 | LOG_CRITICAL(Render_OpenGL, "Unknown logic op %d", op); | 126 | LOG_CRITICAL(Render_OpenGL, "Unknown logic op %d", op); |
| 127 | UNREACHABLE(); | 127 | UNREACHABLE(); |
| 128 | 128 | ||
| @@ -145,7 +145,7 @@ inline GLenum CompareFunc(Pica::Regs::CompareFunc func) { | |||
| 145 | }; | 145 | }; |
| 146 | 146 | ||
| 147 | // Range check table for input | 147 | // Range check table for input |
| 148 | if ((unsigned)func >= ARRAY_SIZE(compare_func_table)) { | 148 | if (static_cast<size_t>(func) >= ARRAY_SIZE(compare_func_table)) { |
| 149 | LOG_CRITICAL(Render_OpenGL, "Unknown compare function %d", func); | 149 | LOG_CRITICAL(Render_OpenGL, "Unknown compare function %d", func); |
| 150 | UNREACHABLE(); | 150 | UNREACHABLE(); |
| 151 | 151 | ||
| @@ -168,7 +168,7 @@ inline GLenum StencilOp(Pica::Regs::StencilAction action) { | |||
| 168 | }; | 168 | }; |
| 169 | 169 | ||
| 170 | // Range check table for input | 170 | // Range check table for input |
| 171 | if ((unsigned)action >= ARRAY_SIZE(stencil_op_table)) { | 171 | if (static_cast<size_t>(action) >= ARRAY_SIZE(stencil_op_table)) { |
| 172 | LOG_CRITICAL(Render_OpenGL, "Unknown stencil op %d", action); | 172 | LOG_CRITICAL(Render_OpenGL, "Unknown stencil op %d", action); |
| 173 | UNREACHABLE(); | 173 | UNREACHABLE(); |
| 174 | 174 | ||