mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
Fix GPU driver test screen
This commit is contained in:
parent
eb831aaf14
commit
2fef4c4a9c
1 changed files with 4 additions and 0 deletions
|
@ -18,7 +18,11 @@ static const std::vector<Draw::ShaderSource> fsDiscard = {
|
|||
varying vec2 oTexCoord0;
|
||||
uniform sampler2D Sampler0;
|
||||
void main() {
|
||||
#if __VERSION__ >= 130
|
||||
vec4 color = texture(Sampler0, oTexCoord0) * oColor0;
|
||||
#else
|
||||
vec4 color = texture2D(Sampler0, oTexCoord0) * oColor0;
|
||||
#endif
|
||||
if (color.a <= 0.0)
|
||||
discard;
|
||||
gl_FragColor = color;
|
||||
|
|
Loading…
Add table
Reference in a new issue