diff --git a/Source/Core/VideoBackends/OGL/TextureConverter.cpp b/Source/Core/VideoBackends/OGL/TextureConverter.cpp index f4300db292..055a1e6d7c 100644 --- a/Source/Core/VideoBackends/OGL/TextureConverter.cpp +++ b/Source/Core/VideoBackends/OGL/TextureConverter.cpp @@ -134,7 +134,7 @@ static void CreatePrograms() static SHADER &GetOrCreateEncodingShader(u32 format) { - if (format > NUM_ENCODING_PROGRAMS) + if (format >= NUM_ENCODING_PROGRAMS) { PanicAlert("Unknown texture copy format: 0x%x\n", format); return s_encodingPrograms[0];