mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-17 16:30:30 +02:00
Minor cleanup
This commit is contained in:
1 parent
26049e213f
commit
64de3c428e
1 file changed
+2
-2
@@ -104,7 +104,7 @@ static bool CanDoubleSrcBlendMode() {
|
||||
// look like, and concatenate them together into an ID.
|
||||
void ComputeFragmentShaderID(FragmentShaderID *id) {
|
||||
memset(&id->d[0], 0, sizeof(id->d));
|
||||
if (gstate.clearmode & 1) {
|
||||
if (gstate.isModeClear()) {
|
||||
// We only need one clear shader, so let's ignore the rest of the bits.
|
||||
id->d[0] = 1;
|
||||
} else {
|
||||
@@ -219,7 +219,7 @@ void GenerateFragmentShader(char *buffer) {
|
||||
secondary = "";
|
||||
}
|
||||
|
||||
if (gstate.textureMapEnable & 1) {
|
||||
if (gstate.isTextureMapEnabled()) {
|
||||
if (doTextureProjection) {
|
||||
WRITE(p, " vec4 t = texture2DProj(tex, v_texcoord);\n");
|
||||
} else {
|
||||
|
||||
Reference in new issue
Block a user