Fix fast navigate winding being incorrect (apparent when backface

culling was on)
This commit is contained in:
Antonis Ryakiotakis 2015-08-04 16:03:20 +02:00
parent 4041e654cd
commit 1fc32249f5
Notes: blender-bot 2023-02-14 08:48:38 +01:00
Referenced by issue #45678, Zooming while in paint mode malfunctioning.
1 changed files with 2 additions and 2 deletions

View File

@ -1617,8 +1617,8 @@ static GPUBuffer *gpu_get_grid_buffer(int gridsize, GLenum *index_type, unsigned
int i; \
for (i = 0; i < totgrid; i++) { \
int currentquad = i * 6; \
buffer[currentquad] = i * gridsize * gridsize; \
buffer[currentquad + 1] = i * gridsize * gridsize + gridsize - 1; \
buffer[currentquad] = i * gridsize * gridsize + gridsize - 1; \
buffer[currentquad + 1] = i * gridsize * gridsize; \
buffer[currentquad + 2] = (i + 1) * gridsize * gridsize - gridsize; \
buffer[currentquad + 3] = (i + 1) * gridsize * gridsize - 1; \
buffer[currentquad + 4] = i * gridsize * gridsize + gridsize - 1; \