OpenGL2: Detect Intel graphics and avoid/use certain operations there.
Also use qglCopyTextureSubImage2DEXT instead of qglCopyTextureImage2DEXT.
This commit is contained in:
parent
730207817e
commit
0672905ef1
9 changed files with 22 additions and 13 deletions
|
@ -63,6 +63,11 @@ void GLimp_InitExtraExtensions()
|
|||
ri.Error(ERR_FATAL, "OpenGL 2.0 required!");
|
||||
ri.Printf(PRINT_ALL, "...using OpenGL %s\n", glConfig.version_string);
|
||||
|
||||
// Check if we need Intel graphics specific fixes.
|
||||
glRefConfig.intelGraphics = qfalse;
|
||||
if (strstr((char *)qglGetString(GL_RENDERER), "Intel"))
|
||||
glRefConfig.intelGraphics = qtrue;
|
||||
|
||||
// set DSA fallbacks
|
||||
#define GLE(ret, name, ...) qgl##name = GLDSA_##name;
|
||||
QGL_EXT_direct_state_access_PROCS;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue