mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-25 15:19:42 -06:00
Merge pull request #618 from lioncash/array-bounds
OGL: Correctly guard against array bounds of s_encodingPrograms
This commit is contained in:
@ -134,7 +134,7 @@ static void CreatePrograms()
|
|||||||
|
|
||||||
static SHADER &GetOrCreateEncodingShader(u32 format)
|
static SHADER &GetOrCreateEncodingShader(u32 format)
|
||||||
{
|
{
|
||||||
if (format > NUM_ENCODING_PROGRAMS)
|
if (format >= NUM_ENCODING_PROGRAMS)
|
||||||
{
|
{
|
||||||
PanicAlert("Unknown texture copy format: 0x%x\n", format);
|
PanicAlert("Unknown texture copy format: 0x%x\n", format);
|
||||||
return s_encodingPrograms[0];
|
return s_encodingPrograms[0];
|
||||||
|
Reference in New Issue
Block a user