mirror of
https://github.com/CTCaer/RetroArch.git
synced 2024-12-23 11:18:25 +00:00
Merge pull request #2488 from heuripedes/master
(gl) Fix invalid enum error
This commit is contained in:
commit
bbe9927eea
@ -2065,8 +2065,11 @@ static bool resolve_extensions(gl_t *gl, const char *context_ident)
|
||||
|
||||
glGetIntegerv(GL_MAX_TEXTURE_SIZE, &max_texture_size);
|
||||
|
||||
if (arb_frag_program)
|
||||
glGetIntegerv(GL_MAX_PROGRAM_NATIVE_INSTRUCTIONS_ARB, &max_native_instr);
|
||||
#ifdef GL_MAX_PROGRAM_NATIVE_INSTRUCTIONS_ARB
|
||||
if (arb_frag_program && glGetProgramivARB)
|
||||
glGetProgramivARB(GL_FRAGMENT_PROGRAM_ARB,
|
||||
GL_MAX_PROGRAM_NATIVE_INSTRUCTIONS_ARB, &max_native_instr);
|
||||
#endif
|
||||
|
||||
gl->have_full_npot_support = arb_npot && arb_frag_program &&
|
||||
(max_texture_size >= 8192) && (max_native_instr >= 4096);
|
||||
|
Loading…
Reference in New Issue
Block a user