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
|
@ -360,8 +360,8 @@ void R_BindVao(vao_t * vao)
|
|||
{
|
||||
qglBindVertexArray(vao->vao);
|
||||
|
||||
// why you no save GL_ELEMENT_ARRAY_BUFFER binding, Intel?
|
||||
if (1)
|
||||
// Intel Graphics doesn't save GL_ELEMENT_ARRAY_BUFFER binding with VAO binding.
|
||||
if (glRefConfig.intelGraphics || vao == tess.vao)
|
||||
qglBindBuffer(GL_ELEMENT_ARRAY_BUFFER, vao->indexesIBO);
|
||||
|
||||
// tess VAO always has buffers bound
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue