mirror of
https://github.com/touchHLE/touchHLE.git
synced 2026-01-31 01:25:24 +01:00
Add explanatory comment for tolerating glTexEnvi(GL_TEXTURE_2D, TEXTURE_ENV_MODE, ...)
Change-Id: Ie2b0cff6b08ddc9c0636881d67329b4824c54b46
This commit is contained in:
@@ -1528,7 +1528,13 @@ impl GLES for GLES1OnGL2 {
|
||||
gl21::TexEnvi(target, pname, param)
|
||||
}
|
||||
gl21::TEXTURE_2D => {
|
||||
// This is not a valid TexEnvi target, but we a tolerating it
|
||||
// for a Rayman 2 case.
|
||||
assert!(pname == gl21::TEXTURE_ENV_MODE);
|
||||
log_dbg!(
|
||||
"Tolerating glTexEnvi(GL_TEXTURE_2D, TEXTURE_ENV_MODE, {})",
|
||||
param
|
||||
);
|
||||
gl21::TexEnvi(target, pname, param)
|
||||
}
|
||||
_ => unimplemented!("target 0x{:X}, pname 0x{:X}", target, pname),
|
||||
|
||||
Reference in New Issue
Block a user