translate before draw arrays
This commit is contained in:
parent
987c24acd4
commit
d58b256edb
|
@ -720,7 +720,6 @@ public class EaglerAdapterGL30 extends EaglerAdapterImpl2 {
|
||||||
if (d != null && d.listLength > 0) {
|
if (d != null && d.listLength > 0) {
|
||||||
bindTheShader(d.shaderMode | getShaderModeFlag1());
|
bindTheShader(d.shaderMode | getShaderModeFlag1());
|
||||||
_wglBindVertexArray0(d.glarray);
|
_wglBindVertexArray0(d.glarray);
|
||||||
_wglDrawQuadArrays(0, d.listLength);
|
|
||||||
|
|
||||||
//glTranslate support for display lists
|
//glTranslate support for display lists
|
||||||
for(Translate t : d.translate) {
|
for(Translate t : d.translate) {
|
||||||
|
@ -728,6 +727,8 @@ public class EaglerAdapterGL30 extends EaglerAdapterImpl2 {
|
||||||
getMatrix().translate(deevis);
|
getMatrix().translate(deevis);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
_wglDrawQuadArrays(0, d.listLength);
|
||||||
|
|
||||||
shader.unuseProgram();
|
shader.unuseProgram();
|
||||||
vertexDrawn += d.listLength * 6 / 4;
|
vertexDrawn += d.listLength * 6 / 4;
|
||||||
triangleDrawn += d.listLength / 2;
|
triangleDrawn += d.listLength / 2;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user