sdslabs / Rubeus

A cross platform 2D game engine written in C++ for beginners
https://blog.sdslabs.co/Rubeus-Docs
MIT License
184 stars 15 forks source link

OpenGL error in shader compilation step #98

Closed murex971 closed 5 years ago

murex971 commented 5 years ago

Master HEAD: https://github.com/sdslabs/Rubeus/commit/cad1c9e9ac849e5f98a61b73b9bbef7b2acab700

OS version: Ubuntu 18.04

CPU/GPU: Intel i3 CPU/None

Description: https://github.com/sdslabs/Rubeus/blob/cad1c9e9ac849e5f98a61b73b9bbef7b2acab700/RubeusCore/Shaders/basic.frag#L28 This is causing:

RubeusLog:/home/nupur/Rubeus/RubeusCore/Source/shader_component.cpp:65:0:28(21): error: sampler arrays indexed with non-constant expressions are forbidden in GLSL 1.30 and later

RubeusLog:/home/nupur/Rubeus/RubeusCore/Source/shader_component.cpp:143:OpenGL Error: 0x0501
twaritwaikar commented 5 years ago

This was fixed in consequent dev branches, which are now merged in