mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-22 05:40:01 -06: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:
@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user