Skip to content

Commit

Permalink
Merge pull request #53 from mtobiasm/image-read-framebuffer
Browse files Browse the repository at this point in the history
Use GL_READ_FRAMEBUFFER for Image Read
  • Loading branch information
szabolcsdombi authored Dec 19, 2023
2 parents 5cd5f02 + 41f0bae commit dc12272
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion zengl.c
Original file line number Diff line number Diff line change
Expand Up @@ -1636,7 +1636,7 @@ static PyObject * read_image_face(ImageFace * src, IntPair size, IntPair offset,

int write_size = size.x * size.y * src->image->fmt.pixel_size;

bind_draw_framebuffer(src->ctx, src->framebuffer->obj);
bind_read_framebuffer(src->ctx, src->framebuffer->obj);

if (into == Py_None) {
PyObject * res = PyBytes_FromStringAndSize(NULL, write_size);
Expand Down

0 comments on commit dc12272

Please sign in to comment.