Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge pull request #618 from lioncash/array-bounds
OGL: Correctly guard against array bounds of s_encodingPrograms
  • Loading branch information
delroth committed Jul 14, 2014
2 parents dee6f22 + b66eb03 commit 72b15be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/Core/VideoBackends/OGL/TextureConverter.cpp
Expand Up @@ -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];
Expand Down

0 comments on commit 72b15be

Please sign in to comment.