Bug 27248

Summary: Mesa slang float to int casting bug
Product: Mesa Reporter: alex <ittasks>
Component: Mesa coreAssignee: mesa-dev
Status: RESOLVED INVALID QA Contact:
Severity: normal    
Priority: medium Keywords: janitor
Version: unspecified   
Hardware: All   
OS: All   
Whiteboard:
i915 platform: i915 features:

Description alex 2010-03-22 10:04:51 UTC
i believe where is a typo in :

slang_typeinfo.c

allowing "float to int" conversation instead of "int to float":

this :
slang_type_specifier_compatible(const slang_type_specifier * x,
                                const slang_type_specifier * y)
{
   /* special case: float == int */
   if (x->type == SLANG_SPEC_INT && y->type == SLANG_SPEC_FLOAT) {
      return GL_TRUE;
   }
should be replaced with :
   if (x->type == SLANG_SPEC_FLOAT && y->type == SLANG_SPEC_INT) {
Comment 1 Marek Olšák 2011-03-02 05:49:38 UTC
Because the GLSL has been rewritten, this bug is no longer relevant.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.