Fixed the shaders (needed to use texture2DRect) - thanks Ryan!
This commit is contained in:
parent
fd61299f87
commit
296fa03f71
2 changed files with 30 additions and 12 deletions
|
@ -297,11 +297,6 @@ GL_CreateRenderer(SDL_Window * window, Uint32 flags)
|
|||
data->glDisable(GL_CULL_FACE);
|
||||
/* This ended up causing video discrepancies between OpenGL and Direct3D */
|
||||
/*data->glEnable(GL_LINE_SMOOTH);*/
|
||||
if (data->GL_ARB_texture_rectangle_supported) {
|
||||
data->glEnable(GL_TEXTURE_RECTANGLE_ARB);
|
||||
} else {
|
||||
data->glEnable(GL_TEXTURE_2D);
|
||||
}
|
||||
data->updateSize = SDL_TRUE;
|
||||
|
||||
return renderer;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue