ref: 61f84280ad95ebb3d6b9140a9eb9f7b525c52231
parent: dd59c41893e48081f81114a2c714d827218c0a32
author: David <gek@katherine>
date: Tue Mar 9 22:16:27 EST 2021
Automatic commit.
--- a/src/arrays.c
+++ b/src/arrays.c
@@ -15,7 +15,7 @@
if(s->buffers[handle]){ //if this handle exists...
if(c->boundarraybuffer == (handle+1)) c->boundarraybuffer = 0;
if(s->buffers[handle]->data) //if this handle has data...
- {
+ {
void* d = s->buffers[handle]->data;
gl_free(s->buffers[handle]->data); //free the data...
//deal with the possible bindings...
--- a/src/ztriangle.h
+++ b/src/ztriangle.h
@@ -170,6 +170,10 @@
DRAW_INIT();
//part used here and down.
+//TODO: #pragma omp parallel for private(a, b, c)
+//Required reading:
+//http://jakascorner.com/blog/2016/06/omp-data-sharing-attributes.html
+//I'd also like to figure out if the main while() loop over raster lines can be OMP parallelized, but I suspect it isn't worth it.
for (GLint part = 0; part < 2; part++) {
GLint nb_lines;
{ZBufferPoint *pr1, *pr2, *l1, *l2; //BEGINNING OF LIFETIME FOR ZBUFFERPOINT VARS!!!