From 3d15a1d78675b5b8243b9ef65210683413736340 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Tue, 22 Aug 2017 18:34:25 +0530 Subject: [PATCH] Fix textures not being rendered in a render call that also uploads textures The active texture should not be unbound in the upload texture functions --- kitty/shaders.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/kitty/shaders.py b/kitty/shaders.py index b189e27d6..cb0f3d1e7 100644 --- a/kitty/shaders.py +++ b/kitty/shaders.py @@ -169,7 +169,6 @@ class Sprites: # {{{ glPixelStorei(GL_UNPACK_ALIGNMENT, 1) x, y = x * self.cell_width, y * self.cell_height glTexSubImage3D(tgt, 0, x, y, z, self.cell_width, self.cell_height, 1, GL_RED, GL_UNSIGNED_BYTE, addressof(buf)) - glBindTexture(tgt, 0) def realloc_texture(self): tgt = GL_TEXTURE_2D_ARRAY @@ -204,7 +203,6 @@ class Sprites: # {{{ self.last_num_of_layers = znum self.last_ynum = self.backend.ynum self.texture_id = tex - glBindTexture(tgt, 0) def destroy(self): if self.texture_id is not None: