YaGL: Fix gl_PointSize shader variable issue
authorVasiliy Ulyanov <v.ulyanov@samsung.com>
Thu, 21 May 2015 13:53:56 +0000 (16:53 +0300)
committerjinhyung.jo <jinhyung.jo@samsung.com>
Tue, 26 May 2015 09:49:21 +0000 (18:49 +0900)
If GL_POINT_SPRITE is not enabled explicitly gl_PointSize shader
variable appears to be always 0.

Change-Id: I8198a0586467eb3f341a330afaddd6d3a263a617
Signed-off-by: Vasiliy Ulyanov <v.ulyanov@samsung.com>
GLESv2/yagl_gles2_context.c

index 39d902fe8e35173d02a7a06ac1b9af76663a2d63..515d5f2193d1c2e29edb8440bcc71a897a9a526a 100644 (file)
@@ -574,7 +574,7 @@ void yagl_gles2_context_pre_draw(struct yagl_gles2_context *ctx,
      */
 
     if (mode == GL_POINTS) {
-        if (yagl_get_host_gl_version() <= yagl_gl_2) {
+        if (yagl_get_host_gl_version() <= yagl_gl_3_2) {
             yagl_host_glEnable(GL_POINT_SPRITE);
         }
         yagl_host_glEnable(GL_VERTEX_PROGRAM_POINT_SIZE);
@@ -587,7 +587,7 @@ void yagl_gles2_context_post_draw(struct yagl_gles2_context *ctx,
 {
     if (mode == GL_POINTS) {
         yagl_host_glDisable(GL_VERTEX_PROGRAM_POINT_SIZE);
-        if (yagl_get_host_gl_version() <= yagl_gl_2) {
+        if (yagl_get_host_gl_version() <= yagl_gl_3_2) {
             yagl_host_glDisable(GL_POINT_SPRITE);
         }
     }