mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-05-18 18:58:27 +00:00
Fixed warning: 'fA' may be used uninitialized in this function
This commit is contained in:
parent
961488b0dc
commit
2cf32b0e0a
1 changed files with 1 additions and 1 deletions
|
@ -1744,7 +1744,7 @@ int SDL_SetTextureAlphaModFloat(SDL_Texture *texture, float alpha)
|
||||||
|
|
||||||
int SDL_GetTextureAlphaMod(SDL_Texture *texture, Uint8 *alpha)
|
int SDL_GetTextureAlphaMod(SDL_Texture *texture, Uint8 *alpha)
|
||||||
{
|
{
|
||||||
float fA;
|
float fA = 1.0f;
|
||||||
|
|
||||||
if (SDL_GetTextureAlphaModFloat(texture, &fA) < 0) {
|
if (SDL_GetTextureAlphaModFloat(texture, &fA) < 0) {
|
||||||
return -1;
|
return -1;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue