Explorar o código

Fixed uninitialized variable in some cases

Sam Lantinga %!s(int64=11) %!d(string=hai) anos
pai
achega
5c6c86912d
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/render/software/SDL_draw.h

+ 1 - 1
src/render/software/SDL_draw.h

@@ -51,7 +51,7 @@ do { \
 
 #define DRAW_SETPIXEL_BLEND(getpixel, setpixel) \
 do { \
-    unsigned sr, sg, sb, sa; \
+    unsigned sr, sg, sb, sa = 0xFF; \
     getpixel; \
     sr = DRAW_MUL(inva, sr) + r; \
     sg = DRAW_MUL(inva, sg) + g; \