mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-11-17 10:44:48 +00:00
fixed a bug with SHDIM==3
This commit is contained in:
parent
910775a25d
commit
8daae8a1ed
9
glhr.cpp
9
glhr.cpp
@ -738,11 +738,14 @@ EX void vertices_texture_color(const vector<glvertex>& v, const vector<glvertex>
|
||||
#if CAP_VERTEXBUFFER
|
||||
int q = min(isize(v)-vshift, isize(t)-tshift);
|
||||
vector<ct_vertex> tv(q);
|
||||
for(int i=0; i<q; i++)
|
||||
for(int i=0; i<q; i++) {
|
||||
tv[i].coords = v[vshift+i],
|
||||
tv[i].texture[0] = t[tshift+i][0],
|
||||
tv[i].texture[1] = t[tshift+i][1],
|
||||
tv[i].color = c[tshift+i];
|
||||
tv[i].texture[1] = t[tshift+i][1];
|
||||
for(int i=0; i<SHDIM; i++)
|
||||
tv[i].color[i] = c[tshift+i][i];
|
||||
if(SHDIM == 3) tv[i].color[3] = 1;
|
||||
}
|
||||
prepare(tv);
|
||||
#else
|
||||
vertices(v, vshift);
|
||||
|
Loading…
Reference in New Issue
Block a user