this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Fixed IBO upload upon growing the index buffer so that it uses the right size.

+2 -2
+2 -2
src/renderer_GL_common.inl
··· 433 433 return 1; 434 434 if(cdata->index_buffer_max_num_vertices == GPU_INDEX_BUFFER_ABSOLUTE_MAX_VERTICES) 435 435 return 0; 436 - 436 + 437 437 // Calculate new size (in vertices) 438 438 new_max_num_vertices = cdata->index_buffer_max_num_vertices * 2; 439 439 while(new_max_num_vertices <= minimum_vertices_needed) ··· 457 457 #endif 458 458 459 459 glBindBuffer(GL_ELEMENT_ARRAY_BUFFER, cdata->blit_IBO); 460 - glBufferData(GL_ELEMENT_ARRAY_BUFFER, sizeof(unsigned short) * cdata->blit_buffer_max_num_vertices, NULL, GL_DYNAMIC_DRAW); 460 + glBufferData(GL_ELEMENT_ARRAY_BUFFER, sizeof(unsigned short) * cdata->index_buffer_max_num_vertices, NULL, GL_DYNAMIC_DRAW); 461 461 462 462 #if !defined(SDL_GPU_NO_VAO) 463 463 glBindVertexArray(0);