Skip to content

Commit

Permalink
WebGPU: fix Windows compilation.
Browse files Browse the repository at this point in the history
  • Loading branch information
kosua20 committed Jul 17, 2023
1 parent 7695b0f commit 912b28f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
1 change: 0 additions & 1 deletion webgpu/src/resources/Resources.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,6 @@ void Resources::loadImage(const std::string & path, Image& image, bool flip){
image.c = (unsigned int)localChannels;
image.data = std::vector<unsigned char>(data, data + image.w * image.h * image.c);
STBI_FREE(data);
return 0;
}


6 changes: 3 additions & 3 deletions webgpu/src/resources/Resources.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ struct Mesh {

struct Image {
std::vector<unsigned char> data;
uint w;
uint h;
uint c;
unsigned int w;
unsigned int h;
unsigned int c;
};

class Resources {
Expand Down

0 comments on commit 912b28f

Please sign in to comment.