shithub: tinygl

Download patch

ref: 9dd16568e1eafbf262401b5fd1b2f88ccaff4972
parent: 5b2f009ae717428fc5e0fc0281f99224e9975c46
author: MHS <gek@katherine>
date: Fri Mar 19 10:33:45 EDT 2021

Automatic commit.

--- a/src/texture.c
+++ b/src/texture.c
@@ -247,6 +247,7 @@
 	//sample the buffer.
 	//TODO implement the scaling and stuff that the GL spec says it should have.
 #if TGL_FEATURE_MULTITHREADED_COPY_TEXIMAGE_2D == 1
+#pragma omp parallel for
 	for(GLint j = 0; j < h; j++)
 	for(GLint i = 0; i < w; i++){
 		data[i+j*w] = c->zb->pbuf[		((i+x)%(c->zb->xsize))
@@ -253,7 +254,6 @@
 									+	((j+y)%(c->zb->ysize))*(c->zb->xsize)];
 	}
 #else
-#pragma omp parallel for
 	for(GLint j = 0; j < h; j++)
 	for(GLint i = 0; i < w; i++){
 		data[i+j*w] = c->zb->pbuf[		((i+x)%(c->zb->xsize))