1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-12-28 11:00:34 +00:00

fixed Android slowdown

This commit is contained in:
Zeno Rogue 2018-03-08 20:25:14 +01:00
parent 0cf41bb09c
commit 3a3c031081

View File

@ -268,8 +268,19 @@ void gldraw(int useV, const transmatrix& V, const vector<glvertex>& v, int ps, i
#endif
}
else {
glhr::vertices(v);
glhr::be_nontextured();
#if !ISANDROID
glhr::vertices(v);
#else
if(glhr::current_vertices != &v[ps]) {
glhr::current_vertices = &v[ps];
glVertexAttribPointer(glhr::aPosition, 3, GL_FLOAT, GL_FALSE, sizeof(glvertex), &v[ps]);
// glVertexPointer(3, GL_FLOAT, sizeof(glvertex), &v[ps]);
// glhr::vertices(v);
}
ps = 0;
#endif
}
for(int ed = stereo::active() ? -1 : 0; ed<2; ed+=2) {