mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-10-21 12:42:25 +00:00
Ensure texture buffer is bound before uploading to it
This commit is contained in:
parent
3af501b715
commit
421ae6d289
1 changed files with 1 additions and 0 deletions
|
|
@ -157,6 +157,7 @@ class Sprites:
|
|||
return glGenBuffers(1)
|
||||
|
||||
def set_sprite_map(self, buf_id, data, usage=GL_STREAM_DRAW):
|
||||
self.bind_sprite_map(buf_id)
|
||||
glNamedBufferData(buf_id, sizeof(data), addressof(data), usage)
|
||||
|
||||
def bind_sprite_map(self, buf_id):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue