make rgb555 hack working on older hardware as well
This commit is contained in:
parent
d93a78b2a0
commit
0eda9d21e1
2 changed files with 27 additions and 11 deletions
|
@ -260,6 +260,8 @@ static void ogl_create_textures(int width, int height)
|
|||
0);
|
||||
}
|
||||
else if (g_ddraw->bpp == 16 && g_ddraw->rgb555)
|
||||
{
|
||||
if (g_oglu_got_version3)
|
||||
{
|
||||
glTexImage2D(
|
||||
GL_TEXTURE_2D,
|
||||
|
@ -272,6 +274,20 @@ static void ogl_create_textures(int width, int height)
|
|||
g_ogl.surface_type = GL_UNSIGNED_BYTE,
|
||||
0);
|
||||
}
|
||||
else
|
||||
{
|
||||
glTexImage2D(
|
||||
GL_TEXTURE_2D,
|
||||
0,
|
||||
GL_RGBA8,
|
||||
g_ogl.surface_tex_width,
|
||||
g_ogl.surface_tex_height,
|
||||
0,
|
||||
g_ogl.surface_format = GL_BGRA,
|
||||
g_ogl.surface_type = GL_UNSIGNED_SHORT_1_5_5_5_REV,
|
||||
0);
|
||||
}
|
||||
}
|
||||
else if (g_ddraw->bpp == 16)
|
||||
{
|
||||
glTexImage2D(
|
||||
|
|
Loading…
Reference in a new issue