Skip to content
Permalink
Browse files
Allow SM3 shaders that are vs_3_x or vs_3_sw.
  • Loading branch information
icculus committed Dec 10, 2008
1 parent f7b1ab9 commit 386022857c663f34f273194c9a0fe52433e47572
Showing with 2 additions and 2 deletions.
  1. +1 −1 mojoshader.c
  2. +1 −1 mojoshader_internal.h
@@ -289,7 +289,7 @@ static inline void pop_output(Context *ctx)

static inline uint32 ver_ui32(const uint8 major, const uint8 minor)
{
return ( (((uint32) major) << 16) | (((minor) == 0xFF) ? 0 : (minor)) );
return ( (((uint32) major) << 16) | (((minor) == 0xFF) ? 1 : (minor)) );
} // version_ui32

static inline int shader_version_supported(const uint8 maj, const uint8 min)
@@ -23,7 +23,7 @@
// This is the highest shader version we currently support.

#define MAX_SHADER_MAJOR 3
#define MAX_SHADER_MINOR 0
#define MAX_SHADER_MINOR 255 // vs_3_sw


// If SUPPORT_PROFILE_* isn't defined, we assume an implicit desire to support.

0 comments on commit 3860228

Please sign in to comment.