Error compiling shader
See original GitHub issueAndroid
Error:
gl-shader: Error compiling shader: 0:8: S0012: Global variable initializer must be a constant expression
Code is:
import { Surface } from "gl-react-native";
import GLImage from "gl-react-image"
<Surface style={{width: 100, height: 200}}>
<GLImage
source={{uri: "https://i.imgur.com/2VP5osy.jpg"}}
resizeMode="cover"
/>
</Surface>
Issue Analytics
- State:
- Created 6 years ago
- Comments:11 (5 by maintainers)
Top Results From Across the Web
Error Compiling Shader when running executable
I have used absolute paths for my shader paths. Shader compile code: Shader(const std::string& vertexShaderPath, const std::string& ...
Read more >There were errors compiling the following shaders... - ReShade
When I try to check a shader, it just tells me 'There were errors compiling the following shaders'. It never happened before. Nothing...
Read more >error compiling shader cannot use enscape through sketch up
Hi I am an architecture student looking to run Enscape through sketch up for a university project. I am using a Windows desktop...
Read more >error compiling shader - OpenGL: Basic Coding
Hi I am a beginner to opengl try to learn the language and i am having the following error i believe it is...
Read more >Error compiling shader file launch crash :: Mount & Blade II
I'm playing version 1.4.3 beta and immediately after launch the game crashes with the following error: Error compiling shader file: ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I think the bug is because the device must have a different version of OpenGL or something like that –_–
@gre my newbie mistake i changed the
src/
and not thelib/
innode_modules
Moving the
float r
into main works. I think that declaration outside and done insidemain()
is best 😃 i will make a PR on it forgl-react-image
Tested and works on OpenGL 2 & 3.2 😉