Login
Username:

Password:

Remember me



Lost Password?

Register now!
Sections
Who's Online
39 user(s) are online (32 user(s) are browsing Forums)

Members: 0
Guests: 39

more...
Support us!
Recent OS4 Files
OS4Depot.net
Report message:*
 

Re: SDL1 open issues

Subject: Re: SDL1 open issues
by kas1e on 2018/3/21 11:37:50

@Capehill
Quote:

Do you mean that one?

That one yes, but also there is that part in the SDL_os4video.c:

#if SDL_VIDEO_OPENGL
    
if (flags SDL_OPENGL)
    {
        
dprintf("Checking for OpenGLn");

        if (
os4video_GL_Init(_this) != 0)
        {
            
dprintf("Failed OpenGL initn");
            
os4video_DeleteCurrentDisplay(_thiscurrent, !newOffScreenSurface);
            return 
FALSE;
        }
        else
        {
            
dprintf("OpenGL init successfulln");
            
current->flags |= SDL_OPENGL;

            
/* Hack. We assert HWSURFACE above to simplify
             * initialization of GL surfaces, but we cannot pass these flags
             * back to SDL.
             * Need to re-work surface set-up code so that this nonsense isn't
             * necessary
             */
            
current->flags &= ~SDL_HWSURFACE;
        }
    }
#endif


Dunno how right comment about hack and needs to re-work surface setup code is at current state, through.

I also found that in video/SDL_glfuncs.h, we have that part:

#ifdef __amigaos4__
// MiniGL doesn't implement 1D texturing
SDL_PROC_UNUSED(void,glCopyTexImage1D,(GLenum targetGLint levelGLenum internalFormatGLint xGLint yGLsizei widthGLint border))
#else
SDL_PROC(void,glCopyTexImage1D,(GLenum targetGLint levelGLenum internalFormatGLint xGLint yGLsizei widthGLint border))
#endif


Dunno if minigl still didn't have 1d texturing, but even if not, there we probably need somehow to make common ifdef, which we can later use for minigl, but didn't use for ogles and gl4es
Powered by XOOPS 2.0 © 2001-2016 The XOOPS Project