OpenGL: transition away from GL_QUADS
Single quads are drawn as a TRIANGLE_FAN, with 4 verts in the same order. Multiple quads now use PRIM_QUADS_XXX and will need further work. Only 8 places still use this. Part of T49043
This commit is contained in:
@@ -461,7 +461,7 @@ void wm_triple_draw_textures(wmWindow *win, wmDrawTriple *triple, float alpha)
|
||||
immUniform1f("alpha", alpha);
|
||||
immUniform1i("image", activeTex);
|
||||
|
||||
immBegin(GL_QUADS, 4);
|
||||
immBegin(PRIM_TRIANGLE_FAN, 4);
|
||||
|
||||
immAttrib2f(texcoord, halfx, halfy);
|
||||
immVertex2f(pos, 0.0f, 0.0f);
|
||||
|
||||
Reference in New Issue
Block a user