| Summary: | Mesa slang float to int casting bug | ||
|---|---|---|---|
| Product: | Mesa | Reporter: | alex <ittasks> |
| Component: | Mesa core | Assignee: | mesa-dev |
| Status: | RESOLVED INVALID | QA Contact: | |
| Severity: | normal | ||
| Priority: | medium | Keywords: | janitor |
| Version: | unspecified | ||
| Hardware: | All | ||
| OS: | All | ||
| Whiteboard: | |||
| i915 platform: | i915 features: | ||
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.
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) {