mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-10 17:01:24 +12:00
silence warnings in RSX stuff
This commit is contained in:
parent
8276d29d4f
commit
3a9ae2df9e
7 changed files with 46 additions and 25 deletions
|
@ -22,8 +22,9 @@ namespace gl
|
|||
case rsx::primitive_type::quads: return GL_TRIANGLES;
|
||||
case rsx::primitive_type::quad_strip: return GL_TRIANGLE_STRIP;
|
||||
case rsx::primitive_type::polygon: return GL_TRIANGLES;
|
||||
default:
|
||||
fmt::throw_exception("unknown primitive type" HERE);
|
||||
}
|
||||
fmt::throw_exception("unknow primitive type" HERE);
|
||||
}
|
||||
|
||||
#ifdef WIN32
|
||||
|
@ -320,6 +321,9 @@ namespace gl
|
|||
case texture::internal_format::compressed_rgba_s3tc_dxt5:
|
||||
compressed_image_size = ((m_width + 3) / 4) * ((m_height + 3) / 4) * 16;
|
||||
break;
|
||||
default:
|
||||
fmt::throw_exception("Tried to load unimplemented internal_format type." HERE);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -549,7 +553,8 @@ namespace gl
|
|||
case rsx::primitive_type::quads:
|
||||
case rsx::primitive_type::polygon:
|
||||
return false;
|
||||
default:
|
||||
fmt::throw_exception("unknown primitive type" HERE);
|
||||
}
|
||||
fmt::throw_exception("unknown primitive type" HERE);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue