mirror of
https://github.com/libSDL2pp/libSDL2pp.git
synced 2025-09-09 15:28:29 -04:00
Use stock function instead of reimplementing with RWops
This commit is contained in:
parent
0007a489c3
commit
64952aea9a
@ -50,8 +50,7 @@ Texture::Texture(Renderer& renderer, RWops& rwops) {
|
||||
}
|
||||
|
||||
Texture::Texture(Renderer& renderer, const std::string& path) {
|
||||
RWops rwops = RWops::FromFile(path);
|
||||
texture_ = IMG_LoadTexture_RW(renderer.Get(), rwops.Get(), 0);
|
||||
texture_ = IMG_LoadTexture(renderer.Get(), path.c_str());
|
||||
}
|
||||
#endif
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user