Shader not working on Android

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
Post Reply
User avatar
steVeRoll
Party member
Posts: 125
Joined: Sun Feb 14, 2016 1:13 pm

Shader not working on Android

Post by steVeRoll »

On PC the shader is working fine, but I get this error when running it on Android:
Screenshot_20180520-184954.png
Screenshot_20180520-184954.png (38.76 KiB) Viewed 1443 times
"screenW" is an extern variable, but after changing it to a regular one, the same error came up with other extern variables.
What could be causing this?
User avatar
veethree
Inner party member
Posts: 820
Joined: Sat Dec 10, 2011 7:18 pm

Re: Shader not working on Android

Post by veethree »

If you post your code we can help you better.
User avatar
bartbes
Sex machine
Posts: 4946
Joined: Fri Aug 29, 2008 10:35 am
Location: The Netherlands
Contact:

Re: Shader not working on Android

Post by bartbes »

It sounds like you're initializing your uniforms, but you're not allowed to. So instead of

Code: Select all

extern float screenW = 50;
just write

Code: Select all

extern float screenW;
Post Reply

Who is online

Users browsing this forum: Google [Bot] and 36 guests