danini-the-panini / mittsu

3D Graphics Library for Ruby.
https://github.com/danini-the-panini/mittsu
MIT License
508 stars 33 forks source link

undefined local var or method 'texture' #105

Closed klautu closed 2 years ago

klautu commented 2 years ago

Hi, maybe I found problem in this file: mittsu-0.3.3/lib/mittsu/renderers/opengl/textures/texture.rb :)

As you can see: if wrap_s != ClampToEdgeWrapping || wrap_t != ClampToEdgeWrapping OR min_filter != NearestFilter && min_filter != LinearFilter outputs warning, and interpolates #{texture.source_file}, but texture is actually undefined.

I don't know what it needs to be instead of undefined texture, because of that I can't create PR with fix

Снимок экрана 2021-11-15 в 16 19 44

.