diff options
author | Tony Wasserka <neobrainx@gmail.com> | 2015-07-12 03:19:46 +0200 |
---|---|---|
committer | Tony Wasserka <neobrainx@gmail.com> | 2015-07-12 03:19:46 +0200 |
commit | ae7120f5d925da39aea9b66750c148428eca1298 (patch) | |
tree | 50f53e790adcf741657ad1ff09997ec43aeeccf3 /src/video_core/pica.h | |
parent | d5f5666f460cfbfc1f4b20c6b60e5636c97050bb (diff) | |
parent | 58d1c6398e555f95bc6da60467c3f49183eb18df (diff) |
Merge pull request #907 from Lectem/clamp_to_border
Add GL_CLAMP_TO_BORDER support.
Diffstat (limited to 'src/video_core/pica.h')
-rw-r--r-- | src/video_core/pica.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/video_core/pica.h b/src/video_core/pica.h index be8ff759..feb20214 100644 --- a/src/video_core/pica.h +++ b/src/video_core/pica.h @@ -114,11 +114,17 @@ struct Regs { struct TextureConfig { enum WrapMode : u32 { ClampToEdge = 0, + ClampToBorder = 1, Repeat = 2, MirroredRepeat = 3, }; - INSERT_PADDING_WORDS(0x1); + union { + BitField< 0, 8, u32> r; + BitField< 8, 8, u32> g; + BitField<16, 8, u32> b; + BitField<24, 8, u32> a; + } border_color; union { BitField< 0, 16, u32> height; |