Skip to content

Commit

Permalink
Allow SM3 shaders that are vs_3_x or vs_3_sw.
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Dec 10, 2008
1 parent f7b1ab9 commit 3860228
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion mojoshader.c
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion mojoshader_internal.h
Expand Up @@ -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.
Expand Down

0 comments on commit 3860228

Please sign in to comment.