mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-05-05 06:28:01 +02:00
gl: Make drawing to windows work again
The correct MIN/MAG_FILTER wasn't set.
This commit is contained in:
parent
3efbc0c5c8
commit
49b52a8946
1 changed files with 2 additions and 0 deletions
|
|
@ -822,6 +822,8 @@ _cairo_gl_surface_draw_image (cairo_gl_surface_t *dst,
|
|||
glGenTextures (1, &tex);
|
||||
glActiveTexture (GL_TEXTURE0);
|
||||
glBindTexture (ctx->tex_target, tex);
|
||||
glTexParameteri (ctx->tex_target, GL_TEXTURE_MIN_FILTER, GL_NEAREST);
|
||||
glTexParameteri (ctx->tex_target, GL_TEXTURE_MAG_FILTER, GL_NEAREST);
|
||||
glTexImage2D (ctx->tex_target, 0, internal_format, width, height, 0,
|
||||
format, type, src->data + src_y * src->stride + src_x * cpp);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue