projects
/
sdk
/
emulator-yagl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
tizen 2.4 release
[sdk/emulator-yagl.git]
/
GLESv2
/
yagl_gles2_calls.c
diff --git
a/GLESv2/yagl_gles2_calls.c
b/GLESv2/yagl_gles2_calls.c
index
67ce9f0
..
6d4bb24
100644
(file)
--- a/
GLESv2/yagl_gles2_calls.c
+++ b/
GLESv2/yagl_gles2_calls.c
@@
-2064,6
+2064,11
@@
YAGL_API void glUseProgram(GLuint program)
YAGL_SET_ERR(GL_INVALID_OPERATION);
goto out;
}
+
+ if (!program_obj->linked) {
+ YAGL_SET_ERR(GL_INVALID_OPERATION);
+ goto out;
+ }
}
if (!ctx->pre_use_program(ctx, program_obj)) {