LUGGPublic / CG_Labs

Repository for Computer Graphics courses EDAF80 (ex EDA221) and EDAN35 at Lund University, Sweden.
https://cs.lth.se/edaf80/
The Unlicense
20 stars 50 forks source link

Fixed getTextureData() when failed to load texture #5

Closed marcusklang closed 4 years ago

marcusklang commented 5 years ago

getTextureData() created an image based on width and height values that are undefined if image failed to load.

Replaced with default image and image is constructed only if successfully loaded.

pierremoreau commented 4 years ago

Thank you for squashing the commits together. :+1: