From 515451e45f71297df143edced5961197f95efc91 Mon Sep 17 00:00:00 2001 From: plagman Date: Sun, 17 May 2009 21:55:50 +0000 Subject: [PATCH] Speed up polymer_init a little. git-svn-id: https://svn.eduke32.com/eduke32@1388 1a8010ca-5511-0410-912e-c29ae57300e0 --- polymer/eduke32/build/src/polymer.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/polymer/eduke32/build/src/polymer.c b/polymer/eduke32/build/src/polymer.c index e0274fafb..1bd6de3d5 100644 --- a/polymer/eduke32/build/src/polymer.c +++ b/polymer/eduke32/build/src/polymer.c @@ -4452,7 +4452,7 @@ static void polymer_initrendertargets(int32_t count) bglGenTextures(1, &prrts[i].color); bglBindTexture(prrts[i].target, prrts[i].color); - bglCopyTexImage2D(prrts[i].target, 0, GL_RGBA, 0, 0, prrts[i].xdim, prrts[i].ydim, 0); + bglTexImage2D(prrts[i].target, 0, GL_RGBA, prrts[i].xdim, prrts[i].ydim, 0, GL_RGBA, GL_SHORT, NULL); bglTexParameteri(prrts[i].target, GL_TEXTURE_MIN_FILTER, GL_NEAREST); bglTexParameteri(prrts[i].target, GL_TEXTURE_MAG_FILTER, GL_NEAREST); bglTexParameteri(prrts[i].target, GL_TEXTURE_WRAP_S, GL_CLAMP); @@ -4467,7 +4467,7 @@ static void polymer_initrendertargets(int32_t count) bglGenTextures(1, &prrts[i].z); bglBindTexture(prrts[i].target, prrts[i].z); - bglCopyTexImage2D(prrts[i].target, 0, GL_DEPTH_COMPONENT, 0, 0, prrts[i].xdim, prrts[i].ydim, 0); + bglTexImage2D(prrts[i].target, 0, GL_DEPTH_COMPONENT, prrts[i].xdim, prrts[i].ydim, 0, GL_DEPTH_COMPONENT, GL_SHORT, NULL); bglTexParameteri(prrts[i].target, GL_TEXTURE_MIN_FILTER, GL_LINEAR); bglTexParameteri(prrts[i].target, GL_TEXTURE_MAG_FILTER, GL_LINEAR); bglTexParameteri(prrts[i].target, GL_TEXTURE_WRAP_S, GL_CLAMP);