summaryrefslogtreecommitdiff
path: root/src/cairo-gl-private.h
diff options
context:
space:
mode:
authorhk57.kim <hk57.kim@samsung.com>2016-03-16 16:42:19 +0900
committerhk57.kim <hk57.kim@samsung.com>2016-03-16 16:42:19 +0900
commitaf39a3b110b53f9ab84de1a91483b5fc952ce6c0 (patch)
tree4556e9cd9ecfa282308bd796343a6634db83eadb /src/cairo-gl-private.h
parentea5563808b7f553121fbed5bc6b4bf908b1a8c05 (diff)
downloadcairo-af39a3b110b53f9ab84de1a91483b5fc952ce6c0.tar.gz
cairo-af39a3b110b53f9ab84de1a91483b5fc952ce6c0.tar.bz2
cairo-af39a3b110b53f9ab84de1a91483b5fc952ce6c0.zip
Change-Id: Iff4a3ad9811ba4454be3e29d8876a5f3974f4c7f Signed-off-by: hk57.kim <hk57.kim@samsung.com>
Diffstat (limited to 'src/cairo-gl-private.h')
-rw-r--r--src/cairo-gl-private.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/cairo-gl-private.h b/src/cairo-gl-private.h
index 2c534fc39..c013b8d70 100644
--- a/src/cairo-gl-private.h
+++ b/src/cairo-gl-private.h
@@ -857,7 +857,7 @@ _cairo_gl_ensure_drawbuffers (cairo_gl_context_t *ctx)
if ((ctx->vao != 0 &&
(ctx->vao != ctx->states_cache.bound_vao))) {
ctx->dispatch.GetIntegerv (GL_VERTEX_ARRAY_BINDING, &vao);
- if (vao != ctx->states_cache.bound_vao) {
+ if (vao != (GLint)ctx->states_cache.bound_vao) {
ctx->dispatch.BindVertexArray (ctx->vao);
ctx->states_cache.bound_vao = ctx->vao;
@@ -872,7 +872,7 @@ _cairo_gl_ensure_drawbuffers (cairo_gl_context_t *ctx)
if ((ctx->vbo != 0 &&
(ctx->vbo != ctx->states_cache.bound_vbo))) {
ctx->dispatch.GetIntegerv (GL_ARRAY_BUFFER_BINDING, &vbo);
- if (vbo != (GLint) ctx->states_cache.bound_vbo) {
+ if (vbo != (GLint)ctx->states_cache.bound_vbo) {
ctx->dispatch.BindBuffer (GL_ARRAY_BUFFER, ctx->vbo);
}
ctx->states_cache.bound_vbo = ctx->vbo;
@@ -881,7 +881,7 @@ _cairo_gl_ensure_drawbuffers (cairo_gl_context_t *ctx)
if ((ctx->ibo != 0 &&
(ctx->ibo != ctx->states_cache.bound_ibo))) {
ctx->dispatch.GetIntegerv (GL_ELEMENT_ARRAY_BUFFER_BINDING, &ibo);
- if (ibo != (GLint) ctx->states_cache.bound_ibo) {
+ if (ibo != (GLint)ctx->states_cache.bound_ibo) {
ctx->dispatch.BindBuffer (GL_ELEMENT_ARRAY_BUFFER, ctx->ibo);
}
ctx->states_cache.bound_ibo = ctx->ibo;