mojoshader.c
changeset 493 e2c930ab84b5
parent 491 bcc3c215807a
child 494 309f60d7cf8c
equal deleted inserted replaced
492:29bfa3448549 493:e2c930ab84b5
   287 
   287 
   288 // Shader model version magic...
   288 // Shader model version magic...
   289 
   289 
   290 static inline uint32 ver_ui32(const uint8 major, const uint8 minor)
   290 static inline uint32 ver_ui32(const uint8 major, const uint8 minor)
   291 {
   291 {
   292     return ( (((uint32) major) << 16) | (((minor) == 0xFF) ? 0 : (minor)) );
   292     return ( (((uint32) major) << 16) | (((minor) == 0xFF) ? 1 : (minor)) );
   293 } // version_ui32
   293 } // version_ui32
   294 
   294 
   295 static inline int shader_version_supported(const uint8 maj, const uint8 min)
   295 static inline int shader_version_supported(const uint8 maj, const uint8 min)
   296 {
   296 {
   297     return (ver_ui32(maj,min) <= ver_ui32(MAX_SHADER_MAJOR, MAX_SHADER_MINOR));
   297     return (ver_ui32(maj,min) <= ver_ui32(MAX_SHADER_MAJOR, MAX_SHADER_MINOR));