… | |
… | |
288 | |
288 | |
289 | # release objects to opengl again |
289 | # release objects to opengl again |
290 | $queue->enqueue_release_gl_objects ([$tex]); |
290 | $queue->enqueue_release_gl_objects ([$tex]); |
291 | |
291 | |
292 | # wait |
292 | # wait |
293 | $queue->flush; |
293 | $queue->finish; |
294 | |
294 | |
295 | # now draw the texture, the defaults should be all right |
295 | # now draw the texture, the defaults should be all right |
296 | glTexParameterf GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_NEAREST; |
296 | glTexParameterf GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_NEAREST; |
297 | |
297 | |
298 | glEnable GL_TEXTURE_2D; |
298 | glEnable GL_TEXTURE_2D; |