[My OpenGL learning advanced journey] An error occurs when the shader GLSL is running. GLSL compile error: Premature end of line

1. Error description

Today, the shader code of the project is rewritten and run using the syntax introduced in this blog [My OpenGL Learning Advanced Journey] C++ long-line string multi-line writing method and how to write correct OpenGL Shader code . Something went wrong, as follows:

insert image description here

2022-08-19 16:33:25.334 16900-16954/com.xxxx.video.editor E/LOG_TAG_CustomEffectRender: [GLUtils.cpp][loadShader][42]: GLUtils::loadShader error compiling shader:
    ERROR: 0:2: &#

Guess you like

Origin blog.csdn.net/qq446282412/article/details/126427604