Subversion Repositories Kolibri OS

Rev

Rev 4358 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 4358 Rev 4401
Line 658... Line 658...
658
            goto invalid_pname;
658
            goto invalid_pname;
659
      }
659
      }
660
      return GL_FALSE;
660
      return GL_FALSE;
Line 661... Line 661...
661
 
661
 
662
   case GL_TEXTURE_LOD_BIAS:
662
   case GL_TEXTURE_LOD_BIAS:
663
      /* NOTE: this is really part of OpenGL 1.4, not EXT_texture_lod_bias.
-
 
664
       * It was removed in core-profile, and it has never existed in OpenGL
-
 
665
       * ES.
-
 
666
       */
663
      /* NOTE: this is really part of OpenGL 1.4, not EXT_texture_lod_bias. */
667
      if (ctx->API != API_OPENGL_COMPAT)
664
      if (_mesa_is_gles(ctx))
Line 668... Line 665...
668
         goto invalid_pname;
665
         goto invalid_pname;
669
 
666
 
Line 1487... Line 1484...
1487
         if (ctx->API != API_OPENGL_COMPAT || !ctx->Extensions.ARB_depth_texture)
1484
         if (ctx->API != API_OPENGL_COMPAT || !ctx->Extensions.ARB_depth_texture)
1488
            goto invalid_pname;
1485
            goto invalid_pname;
1489
         *params = (GLfloat) obj->DepthMode;
1486
         *params = (GLfloat) obj->DepthMode;
1490
         break;
1487
         break;
1491
      case GL_TEXTURE_LOD_BIAS:
1488
      case GL_TEXTURE_LOD_BIAS:
1492
         if (ctx->API != API_OPENGL_COMPAT)
1489
         if (_mesa_is_gles(ctx))
1493
            goto invalid_pname;
1490
            goto invalid_pname;
Line 1494... Line 1491...
1494
 
1491
 
1495
         *params = obj->Sampler.LodBias;
1492
         *params = obj->Sampler.LodBias;
1496
         break;
1493
         break;
Line 1675... Line 1672...
1675
         if (ctx->API != API_OPENGL_COMPAT || !ctx->Extensions.ARB_depth_texture)
1672
         if (ctx->API != API_OPENGL_COMPAT || !ctx->Extensions.ARB_depth_texture)
1676
            goto invalid_pname;
1673
            goto invalid_pname;
1677
         *params = (GLint) obj->DepthMode;
1674
         *params = (GLint) obj->DepthMode;
1678
         break;
1675
         break;
1679
      case GL_TEXTURE_LOD_BIAS:
1676
      case GL_TEXTURE_LOD_BIAS:
1680
         if (ctx->API != API_OPENGL_COMPAT)
1677
         if (_mesa_is_gles(ctx))
1681
            goto invalid_pname;
1678
            goto invalid_pname;
Line -... Line 1679...
-
 
1679
 
-
 
1680
         /* GL spec 'Data Conversions' section specifies that floating-point
-
 
1681
          * value in integer Get function is rounded to nearest integer
1682
 
1682
          */
1683
         *params = (GLint) obj->Sampler.LodBias;
1683
         *params = (GLint) roundf(obj->Sampler.LodBias);
1684
         break;
1684
         break;
1685
      case GL_TEXTURE_CROP_RECT_OES:
1685
      case GL_TEXTURE_CROP_RECT_OES:
1686
         if (ctx->API != API_OPENGLES || !ctx->Extensions.OES_draw_texture)
1686
         if (ctx->API != API_OPENGLES || !ctx->Extensions.OES_draw_texture)