Merge pull request #618 from lioncash/array-bounds

OGL: Correctly guard against array bounds of s_encodingPrograms
This commit is contained in:
Pierre Bourdon 2014-07-14 10:20:28 +02:00
commit 72b15be3be
1 changed files with 1 additions and 1 deletions

View File

@ -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];