dilevin / computer-graphics-csc317

Course Page for Computer Graphics course
130 stars 25 forks source link

rbga data array size is 0 #60

Open yangh122 opened 2 months ago

yangh122 commented 2 months ago

Hi Prof,

I got an error "vector subscript out of range". After debugging, I found the initial RGBA data array size is 0 which causes the issue. image Are we supposed to handle this case? Thanks

dilevin commented 2 months ago

It looks like it’s failing to load the specified file

how are you running the code ? Can you print the value of file name ? Are you on windows, Linux or osx ?

yangh122 commented 2 months ago

Resolved by changing the output path image