mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-05-17 02:08:27 +00:00
SDL API renaming: SDL_surface.h
Fixes https://github.com/libsdl-org/SDL/issues/6884
This commit is contained in:
parent
2db699f48e
commit
cc0296c934
47 changed files with 416 additions and 362 deletions
|
@ -350,7 +350,7 @@ SDL_GL_LoadTexture(SDL_Surface *surface, GLfloat *texcoord)
|
|||
glTexImage2D(GL_TEXTURE_2D,
|
||||
0,
|
||||
GL_RGBA, w, h, 0, GL_RGBA, GL_UNSIGNED_BYTE, image->pixels);
|
||||
SDL_FreeSurface(image); /* No longer needed */
|
||||
SDL_DestroySurface(image); /* No longer needed */
|
||||
|
||||
return texture;
|
||||
}
|
||||
|
@ -476,7 +476,7 @@ int main(int argc, char **argv)
|
|||
exit(3);
|
||||
}
|
||||
texture = SDL_GL_LoadTexture(surface, texcoords);
|
||||
SDL_FreeSurface(surface);
|
||||
SDL_DestroySurface(surface);
|
||||
|
||||
/* Loop, drawing and checking events */
|
||||
InitGL(640, 480);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue