1 #include "evas_gl_private.h"
4 evas_gl_common_swap_rect(Evas_GL_Context *gc, int x, int y, int w, int h)
6 evas_gl_common_context_read_buf_set(gc, GL_BACK);
7 evas_gl_common_context_write_buf_set(gc, GL_FRONT);
8 evas_gl_common_context_blend_set(gc, 0);
9 evas_gl_common_context_clip_set(gc, 0, 0, 0, 0, 0);
10 evas_gl_common_context_dither_set(gc, 0);
12 glRasterPos2i(x, gc->h - y);
13 glCopyPixels(x, y, w, h, GL_COLOR);