Login
Username:

Password:

Remember me



Lost Password?

Register now!
Sections
Who's Online
37 user(s) are online (17 user(s) are browsing Forums)

Members: 2
Guests: 35

eastone, orgin, more...
Support us!
Recent OS4 Files
OS4Depot.net



« 1 ... 35 36 37 (38)


Re: SDL2
Home away from home
Joined:
2006/11/26 21:45
From a story that hasn't been written yet
Posts: 3433
@Capehill

Not sure if this a strict sdl2 problem but I keep encountering those kind of issues.

See here

It seems, something is not (yet) supported?

I can't test that given fix since I'm not on my system for some days, but I have a similar problem in residualvm which might stem from the same underlying lack of support of some PixelFormat's(?)

_________________
If slaughterhouses had glass walls, everyone would be a vegetarian. ~ Sir Paul McCartney
-
Did everything just taste purple for a second? ~ Philip J. Fry
-
Ain't got no cash, ain't got no style, ladies vomit when I smile. ~ Dr.
   Report Go to top

Re: SDL2
Quite a regular
Joined:
2007/7/14 20:30
From Lothric
Posts: 713
@Raziel

OpenGL means MiniGL or OGLES2 here?

You could try glGetError() method to debug (maybe ScummVM already has some debug mechanism, waiting for activation). My hypothesis is that there is some invalid input for texture format that causes white drawing.

   Report Go to top

Re: SDL2
Home away from home
Joined:
2006/11/26 21:45
From a story that hasn't been written yet
Posts: 3433
@Capehill

OpenGL is MiniGL.
OGLES2 is fine.

What would I need to add to catch those "errors".

Remember, you are talking to a coding noob.

_________________
If slaughterhouses had glass walls, everyone would be a vegetarian. ~ Sir Paul McCartney
-
Did everything just taste purple for a second? ~ Philip J. Fry
-
Ain't got no cash, ain't got no style, ladies vomit when I smile. ~ Dr.
   Report Go to top

Re: SDL2
Quite a regular
Joined:
2007/7/14 20:30
From Lothric
Posts: 713
@Raziel

Something like

GLenum err;

while ((
err glGetError()) != GL_NO_ERROR)
{
    
warning("GL error %d"err);
}


here https://github.com/scummvm/scummvm/blo ... englsdl-graphics.cpp#L348


   Report Go to top

Re: SDL2
Home away from home
Joined:
2006/11/26 21:45
From a story that hasn't been written yet
Posts: 3433
@Capehill

Thank you, will try.

I guess that all possible PixelFormat's are supported?

Would it help to print out the PixelFormat that is finally used?
I guess not, if all of them should work in some way?

_________________
If slaughterhouses had glass walls, everyone would be a vegetarian. ~ Sir Paul McCartney
-
Did everything just taste purple for a second? ~ Philip J. Fry
-
Ain't got no cash, ain't got no style, ladies vomit when I smile. ~ Dr.
   Report Go to top

Re: SDL2
Quite a regular
Joined:
2007/7/14 20:30
From Lothric
Posts: 713
@Raziel

ScummVM seems to call glTexImage2D only in 2 relevant places, so it should be simple to debug out the input parameters.

Debugging input parameters in this file might be enough https://github.com/scummvm/scummvm/blo ... aphics/opengl/texture.cpp

   Report Go to top

Re: SDL2
Home away from home
Joined:
2006/11/26 21:45
From a story that hasn't been written yet
Posts: 3433
@Capehill

Ok...I'll see if I can do it myself

_________________
If slaughterhouses had glass walls, everyone would be a vegetarian. ~ Sir Paul McCartney
-
Did everything just taste purple for a second? ~ Philip J. Fry
-
Ain't got no cash, ain't got no style, ladies vomit when I smile. ~ Dr.
   Report Go to top

Re: SDL2
Quite a regular
Joined:
2007/7/14 20:30
From Lothric
Posts: 713
@Raziel

You can do it. Just use warning() with %d to print those variables. Compiler should tell if %d is not a good idea.

   Report Go to top

Re: SDL2
Home away from home
Joined:
2006/11/26 21:45
From a story that hasn't been written yet
Posts: 3433
@Capehill

Will try

Thank you very much

_________________
If slaughterhouses had glass walls, everyone would be a vegetarian. ~ Sir Paul McCartney
-
Did everything just taste purple for a second? ~ Philip J. Fry
-
Ain't got no cash, ain't got no style, ladies vomit when I smile. ~ Dr.
   Report Go to top


« 1 ... 35 36 37 (38)



[Advanced Search]


Powered by XOOPS 2.0 © 2001-2016 The XOOPS Project