From 84bcd409a3743e933d039a9b3e073030fd2630df Mon Sep 17 00:00:00 2001 From: Adrian Kummerlaender Date: Wed, 23 May 2018 19:06:47 +0200 Subject: Implement particle trails using overlaying textures --- src/texture_buffer.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/texture_buffer.h') diff --git a/src/texture_buffer.h b/src/texture_buffer.h index 8afe240..08c617b 100644 --- a/src/texture_buffer.h +++ b/src/texture_buffer.h @@ -46,6 +46,7 @@ public: auto guard = use(); glViewport(0, 0, width, height); + glBindTexture(GL_TEXTURE_2D, _texture); glTexImage2D(GL_TEXTURE_2D, 0, GL_RGB, width, height, 0, GL_RGB, GL_UNSIGNED_BYTE, (void*)0); } -- cgit v1.2.3