mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-31 21:28:51 +00:00
Assorted warning fixes, small mixer improvement when both DTK and HLE audio are used
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@1100 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
parent
42a515ba76
commit
530fb9ba3d
11 changed files with 24 additions and 29 deletions
|
@ -68,13 +68,8 @@ NativeVertexFormat::~NativeVertexFormat()
|
|||
|
||||
inline GLuint VarToGL(VarType t)
|
||||
{
|
||||
switch (t) {
|
||||
case VAR_BYTE: return GL_BYTE;
|
||||
case VAR_UNSIGNED_BYTE: return GL_UNSIGNED_BYTE;
|
||||
case VAR_SHORT: return GL_SHORT;
|
||||
case VAR_UNSIGNED_SHORT: return GL_UNSIGNED_SHORT;
|
||||
case VAR_FLOAT: return GL_FLOAT;
|
||||
}
|
||||
static const GLuint lookup[5] = {GL_BYTE, GL_UNSIGNED_BYTE, GL_SHORT, GL_UNSIGNED_SHORT, GL_FLOAT};
|
||||
return lookup[t];
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue