move around - flatter.
[profile/ivi/evas.git] / src / modules / engines / gl_common / evas_gl_misc.c
1 #include "evas_gl_private.h"
2
3 void
4 evas_gl_common_swap_rect(Evas_GL_Context *gc, int x, int y, int w, int h)
5 {
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);
11    y = gc->h - y - h;
12    glRasterPos2i(x, gc->h - y);
13    glCopyPixels(x, y, w, h, GL_COLOR);
14 }