TheCherno / Sparky

Cross-Platform High Performance 2D/3D game engine for people like me who like to write code.
Apache License 2.0
1.09k stars 222 forks source link

Default shader doesn't work with my AMD card #47

Closed Gogsi closed 8 years ago

Gogsi commented 8 years ago

After about an hour of changing the shader with eatplayhate, we finally found out that my good old AMD Radeon 6670 HD doesn't work if you try to get the texture from the array if you use a variable as the index. So we had to use the shader you wrote for SPARKY_WEB (which has a lot of if statements to check which texture to use) and add +0.5f on lines 154,163 and 210 in BatchRenderer2D.

Gogsi commented 8 years ago

Nevermind duplicate of #41. Should be addressed though