From 5ba11dc58424892df73d1c12fad7c2fef5f3bd90 Mon Sep 17 00:00:00 2001 From: veclavtalica Date: Sun, 9 Feb 2025 08:30:46 +0300 Subject: [PATCH] remove texture upload profiling --- src/rendering/twn_gl_any_rendering.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/rendering/twn_gl_any_rendering.c b/src/rendering/twn_gl_any_rendering.c index 8f16e8a..d61e96f 100644 --- a/src/rendering/twn_gl_any_rendering.c +++ b/src/rendering/twn_gl_any_rendering.c @@ -209,8 +209,6 @@ void upload_gpu_texture(GPUTexture texture, void *pixels, int channels, int widt return; } - profile_start("texture upload"); - glTexSubImage2D(GL_TEXTURE_2D, 0, 0, @@ -221,8 +219,6 @@ void upload_gpu_texture(GPUTexture texture, void *pixels, int channels, int widt GL_UNSIGNED_BYTE, pixels); - profile_end("texture upload"); - glBindTexture(GL_TEXTURE_2D, 0); }