ecsv  committed a5087ae

Remove invalid texture initialization for unknown texture types

LoadNone cannot initialize n-bytes of the texture where n is the size of a
pointer on an architecture. It is most likely too small to initialize a big
texture but it can be too big and overwrite unrelated parts of the memory.

  • Participants
  • Parent commits ecd597f
  • Branches default

Comments (0)

Files changed (1)

File src/TexLoad.h

 DWORD LoadNone (unsigned char * dst, unsigned char * src, int wid_64, int height, int line, int real_width, int tile)
-    memset (texture, 0xFF, sizeof(texture));
     return GR_TEXFMT_ARGB_1555;