diff options
author | Colin Okay <colin@cicadas.surf> | 2022-07-16 17:16:42 -0500 |
---|---|---|
committer | Colin Okay <colin@cicadas.surf> | 2022-07-16 17:16:42 -0500 |
commit | 35fad29cec4ccaa338e03f9b0879757a9c4c860e (patch) | |
tree | 5b24b4684f27b3909a0541fcc5c037dcf5bcfc2e /src | |
parent | bb40a8782bafd0a3bb0aeb6f0aab9c3c1ef62607 (diff) |
[refactor] blit to use glTexSubImage2D
Diffstat (limited to 'src')
-rw-r--r-- | src/interactive/canvas.lisp | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/src/interactive/canvas.lisp b/src/interactive/canvas.lisp index ce7829b..256348e 100644 --- a/src/interactive/canvas.lisp +++ b/src/interactive/canvas.lisp @@ -207,15 +207,7 @@ e.g., drawing a line in a particular color." (with-slots (fbo texture data pixel-width pixel-height) canvas (gl:bind-framebuffer :framebuffer fbo) (gl:bind-texture :texture-2d (texture-id texture)) - (gl:tex-image-2d :texture-2d - 0 - :rgba - pixel-width - pixel-height - 0 - :rgba - :unsigned-byte - data) + (gl:tex-sub-image-2d :texture-2d 0 0 0 pixel-width pixel-height :rgba :unsigned-byte data) (gl:bind-texture :texture-2d 0) (gl:bind-framebuffer :framebuffer 0))) |