fix builtins test vertex shader

This commit is contained in:
Green Sky 2022-02-22 01:46:39 +01:00
parent 4029dcd50c
commit 0408f771b7

View File

@ -43,7 +43,7 @@ void main() {
)"); )");
auto sb = MM::OpenGL::ShaderBuilder::start(); auto sb = MM::OpenGL::ShaderBuilder::start();
sb.addStageVertex("void main() {}"); sb.addStageVertex("void main() { gl_Position = vec4(0.0); }");
sb.addStageFragmentF(engine, "/shaders/test_frag.glsl"); sb.addStageFragmentF(engine, "/shaders/test_frag.glsl");
auto shader = sb.finish(); auto shader = sb.finish();
ASSERT_TRUE(shader); ASSERT_TRUE(shader);