mirror of
https://github.com/devZoGok/vb01.git
synced 2026-08-26 19:43:30 +00:00
loading new image data into a texture
additional ImageAsset property
This commit is contained in:
+1
-1
@@ -18,6 +18,6 @@ namespace vb01{
|
||||
stbi_set_flip_vertically_on_load(flip);
|
||||
int width, height, numChannels;
|
||||
u8 *data = stbi_load(path.c_str(), &width, &height, &numChannels, 0);
|
||||
return new ImageAsset(path, data, width, height);
|
||||
return new ImageAsset(path, data, width, height, numChannels);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user