AmigaOS4 OpenGLES

General chat related to ScummVM, adventure gaming, and so on.

Moderator: ScummVM Team

User avatar
Raziel
ScummVM Porter
Posts: 1541
Joined: Tue Oct 25, 2005 8:27 am
Location: a dying planet
Contact:

Re: AmigaOS4 OpenGLES

Post by Raziel »

bgK wrote:I would much rather find a way to look up the glesv2 library on your system rather than adding a special case. On my setup, I can lookup the glesv2 library using "pkg-config glesv2 --libs" does that work for you?
pkg-config glesv2 --libs
gnome-config: Unknown command
gnome-config failed returncode 10
Package glesv2 was not found in the pkg-config search path.
Perhaps you should add the directory containing `glesv2.pc'
to the PKG_CONFIG_PATH environment variable
No package 'glesv2' found
glesv2.pc is nowhere to be found in my sdk
Last edited by salty-horse on Sun Nov 11, 2018 6:24 pm, edited 1 time in total.
User avatar
Raziel
ScummVM Porter
Posts: 1541
Joined: Tue Oct 25, 2005 8:27 am
Location: a dying planet
Contact:

Re: AmigaOS4 OpenGLES

Post by Raziel »

Someone at the amigans forum suggested to to exchange "bool filpY" with "int flipY", doing that gives me another error...and i'm not sure if the rest of the code would break.

Code: Select all

Could not compile shader box.vertex: ERROR: 13:1: '' : boolean expression expected  
ERROR: 17:0: '' : compilation terminated  
ERROR: 2 compilation errors.  No code generated. 

!
and then, that i should define flipY with 0 or 1, but that is beyond my abilities.
User avatar
Raziel
ScummVM Porter
Posts: 1541
Joined: Tue Oct 25, 2005 8:27 am
Location: a dying planet
Contact:

Re: AmigaOS4 OpenGLES

Post by Raziel »

And someone on the amigans forum said that the shader (myst3_box.vertex) itself is buggy, which i highly doubt
glslangvalidator errors on it with errors 'in for stage inputs': no supported for this version or enabled extensions.
Any more ideas?

EDIT:
It's obviuosly not the shader :-)
GLSLangValidator is stricter than most OpenGL implementations. As "validator" and reference compiler, it checks whether the GLSL code is fully GLSL compliant. Most OpenGL implementations relax the rules and are more tolerant of mixing code from different GLSL versions.

The shader you posted uses GLSL v1.40+ features without specifying the GLSL version. That's why GLSLangValidator is giving "not supported in this version" errors. Adding "#version 140" at the top (without the quotes) should be enough to make GLSLangValidator accept it.
Of course, i wouldn't add something to just silence some third party program, but good to know the cause of it.

EDIT2:

I got confirmation that uniform boolean aren't supported yet.
Now to try and fix it locally.
User avatar
Raziel
ScummVM Porter
Posts: 1541
Joined: Tue Oct 25, 2005 8:27 am
Location: a dying planet
Contact:

Re: AmigaOS4 OpenGLES

Post by Raziel »

@bgK

I'm trying to stay upto date with the code, so i can test once my platform supports the missing features and i stumbled over an error today (after some weeks of hiatus building the source)

Code: Select all

    C++      engines/stark/formats/xmg.o
engines/stark/formats/xmg.cpp:51:6: error: no declaration matches 'void Stark::Formats::XMGDecoder::readSize(Common::ReadStream*, uint&, uint&)'
 void XMGDecoder::readSize(Common::ReadStream *stream, uint &width, uint &height) {
      ^~~~~~~~~~
In file included from engines/stark/formats/xmg.cpp:23:
./engines/stark/formats/xmg.h:41:14: note: candidate is: 'static void Stark::Formats::XMGDecoder::readSize(Common::ReadStream*, uint32&, uint32&)'
  static void readSize(Common::ReadStream *stream, uint32 &width, uint32 &height);
              ^~~~~~~~
./engines/stark/formats/xmg.h:38:7: note: 'class Stark::Formats::XMGDecoder' defined here
 class XMGDecoder {
       ^~~~~~~~~~
gmake: *** [engines/stark/formats/xmg.o] Error 1
Something i messed up or was it an addition lately?

Thank you
bgK
ScummVM Developer
Posts: 71
Joined: Sat Feb 13, 2016 12:40 pm

Re: AmigaOS4 OpenGLES

Post by bgK »

Oops, it should build again with the most recent revision.
User avatar
Raziel
ScummVM Porter
Posts: 1541
Joined: Tue Oct 25, 2005 8:27 am
Location: a dying planet
Contact:

Re: AmigaOS4 OpenGLES

Post by Raziel »

Thank you very much, working again
Post Reply