From: Stanislav Vorobiov Date: Mon, 24 Feb 2014 10:01:17 +0000 (+0300) Subject: VIGS: Fixed for windows build X-Git-Tag: Tizen_Studio_1.3_Release_p2.3.1~475^2~8 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8c5753884718e761b5e19cfd9f6a740a489d6a18;p=sdk%2Femulator%2Fqemu.git VIGS: Fixed for windows build Change-Id: Ib6e053a9680832c1651798f688d74ce4f47c98fb --- diff --git a/hw/vigs/vigs_gl_backend.c b/hw/vigs/vigs_gl_backend.c index 80dd36eb49..a0175208e0 100644 --- a/hw/vigs/vigs_gl_backend.c +++ b/hw/vigs/vigs_gl_backend.c @@ -336,15 +336,15 @@ static void vigs_gl_draw_color_prog(struct vigs_gl_backend *backend, static void vigs_gl_create_ortho(GLfloat left, GLfloat right, GLfloat bottom, GLfloat top, - GLfloat near, GLfloat far, + GLfloat nearf, GLfloat farf, GLfloat ortho[16]) { ortho[0] = 2.0f / (right - left); ortho[5] = 2.0f / (top - bottom); - ortho[10] = -2.0f / (far - near); + ortho[10] = -2.0f / (farf - nearf); ortho[12] = -(right + left) / (right - left); ortho[13] = -(top + bottom) / (top - bottom); - ortho[14] = -(far + near) / (far - near); + ortho[14] = -(farf + nearf) / (farf - nearf); ortho[15] = 1.0f; } diff --git a/hw/vigs/vigs_gl_backend_wgl.c b/hw/vigs/vigs_gl_backend_wgl.c index 99e059b2bf..4f6ea9269c 100644 --- a/hw/vigs/vigs_gl_backend_wgl.c +++ b/hw/vigs/vigs_gl_backend_wgl.c @@ -504,6 +504,8 @@ struct vigs_backend *vigs_gl_backend_create(void *display) goto fail; } + gl_backend_wgl->base.is_gl_2 = true; + config_id = vigs_gl_backend_wgl_choose_config(gl_backend_wgl); if (!config_id) {