Login
Username:

Password:

Remember me



Lost Password?

Register now!

Sections

Who's Online
128 user(s) are online (90 user(s) are browsing Forums)

Members: 3
Guests: 125

mr2, NinjaCyborg, walkero, more...

Support us!

Headlines

Forum Index


Board index » All Posts (davec555)




Re: SDL2
Just popping in
Just popping in


Is there anything special that needs to be done with MESA and SDL_GL_SwapWindow()?

Double buffering seems to not swap properly for me (requires a second redisplay/swap to reveal). If I force single buffer, update is as expected.

Thanks
Dave

Go to top


Re: Mesa bug thread
Just popping in
Just popping in


Whats the best way to send crash info? Stack trace? full crash log or something else?

I am writing a custom SDL2 app that displays 3d objects (has been an ongoing project for many MANY years).
It works well in SDL2 minigl, SDL2 gl4es, but using SDL2 mesa, it works fine until I get up to a certain polygon count in wireframe mode and ends with a DSI/ISI crash. Works as expected in solid mode, point mode and bounding box, just the wireframe of the object crashes.
When compiled for linux, works fine there too.

Dave

Go to top


Re: SDL2
Just popping in
Just popping in


@Capehill Thanks again.

Edit: I got it to work by changing GL commands not used to SDL_PROC_UNUSED. Maybe there were some default ones that werent available in miniGL but were in Mesa.

------
I tried that but its failing on attempting to load the GL functions in minigl.

I think I'll just have to wait until you update helloworld for me to work it out.

Dave


Edited by davec555 on 2026/9/24 19:10:29
Go to top


Re: SDL2
Just popping in
Just popping in


@Capehill Thanks!

I'm trying to work out how to have one binary that can use either minigl or mesa but can't get that to work (apparently thats how shaderjoy can now work).

Anyway, using the SDL2/tests/helloworld.c as an example, I CAN do context switches, but as soon as I attempt to use an openGL command outside of a miniGL context, I get a DSI followed by ISI.

Is this even possible using your SDL2 or do I just have to keep compiling two different versions depending on the openGL library I want to use?

Thanks
Dave
PS. Currently using a static build of the libSDL in case that is relevant.

Go to top


Re: SDL2
Just popping in
Just popping in


Is there documentation of what the values for the below are:
SDL_GL_SetAttribute(SDL_GL_CONTEXT_PROFILE_MASK, newProfile);
SDL_GL_SetAttribute(SDL_GL_CONTEXT_MAJOR_VERSION, newMajor);
SDL_GL_SetAttribute(SDL_GL_CONTEXT_MINOR_VERSION, newMinor);


Asking in relation to mesa, mingl etc and what they should be set at for the appropriate gl type.

Thanks
Dave

Go to top


Re: Mesa : first update, v1.1
Just popping in
Just popping in


@kas1e I am in desperate need of help. I was able to handle compiling libGLU previously with GL4ES (as the src also came from ptitSeb), but I can't for the life of me compile that with your headers.
Any chance you could build a libGLU or point me to a compatible version that shares your mesa includes?

Thanks
Dave

Edit: Nevermind. I downloaded another GLU repository (in case ptitSeb's was gl4es specific), and compiled that. Still had errors and decided to try changing the order of the -lGL and -lGLU (so -lGLU was first), and low and behold my app linked successfully. Weird as the with miniGL and gl4es -lGL was first.


Edited by davec555 on 2026/9/18 5:49:35
Go to top


Re: Mesa : first update, v1.1
Just popping in
Just popping in


@kas1e yes I meant the mesa version of libgl.a.
I had compiled my own sdl2 and glu but when trying to link I got those errors. As I hadn't compiled the libgl.a (mesa) I thought the dwarf differences might have been from that...
I had previously compiled my own libglu.a from source for gl4es and didn't have a problem. Trying to work out what us different here.

Go to top


Re: Mesa : first update, v1.1
Just popping in
Just popping in


@kas1e was the libGL_mesa.a compiled with DWARF 5 or something?

I keep on getting errors like:
/opt/ppc-amigaos/lib/gcc/ppc-amigaos/11.3.0/../../../../ppc-amigaos/bin/ld: Dwarf Error: found dwarf version '5', this reader only handles version 2, 3 and 4 information.
/
opt/ppc-amigaos/ppc-amigaos/SDK/local/newlib/lib/libGLU_mesa.a(quad.o): In function `gluCylinder':
quad.c:(.text+0x6ac): undefined reference to 
`glNormal3f'
/opt/ppc-amigaos/lib/gcc/ppc-amigaos/11.3.0/../../../../ppc-amigaos/bin/ld: Dwarf Error: found dwarf version '
0', this reader only handles version 2, 3 and 4 information.
quad.c:(.text+0x71c): undefined reference to `glNormal3f'
/opt/ppc-amigaos/lib/gcc/ppc-amigaos/11.3.0/../../../../ppc-amigaos/bin/ld: Dwarf Error: found dwarf version '17181', this reader only handles version 2, 3 and 4 information.
quad.c:(.text+0x778): undefined reference to `glTexCoord2f'


I'm trying to compile my program that references libGLU (that I have re-compiled to theoretically work with your headers but could be screwing something up).

Go to top


Re: SDL2
Just popping in
Just popping in


@Capehill that explains it. Didn't even occur to me to actually look in the specific referenced includes themselves.
So in order for a thirdparty to compile it, they would need to create these custom headers, otherwise it just creates the minigl version only?

Thankyou!

Go to top


Re: SDL2
Just popping in
Just popping in


@Capehill I see you have this in the SDL_os4mesa.c file but don't see that define being used anywhere (and where you include the mesa includes). Can you tell me where that is? Just trying to get my head around it.

Thanks
Dave

Quote:

Something like this:

#ifdef USE_MESA_HEADERS
#include
#else
#include
#endif

For all relevant headers.

Go to top


Re: SDL2
Just popping in
Just popping in


@Capehill understood. But just doing a plain make -f Makefile.amigaos4 will build which version? Ie, is there a flag to set for a specific version?

Go to top


Re: SDL2
Just popping in
Just popping in


@davec555 Looks like some of my copies didn't make it over into the docker image.

However, I am still having troubles building it.
Ideally, I want to be able to build for mesa OR minigl (and also gl4es).

Is there anything special I need to do in the build/make process to allow compiling of minigl as well as mesa?

Thanks
Dave

Go to top


Re: SDL2
Just popping in
Just popping in


Howdy,
I'm trying to compile SDL2.32.10 using the latest pull that has mesa in it, but am getting failures with unknown type GLfixed.

I think(?) I've installed all of the SDK files from the latest release of @kas1e's mesalibrary from os4depot, but still having trouble compiling.

Any suggestions?

thanks
Dave

Go to top


Re: Mesa : first update, v1.1
Just popping in
Just popping in


Are the included lib .a files for newlib or clib4?

Go to top


Re: New LightwaveRTG for Amiga with RTG and Amiga NG.
Just popping in
Just popping in


@davec555 preliminary testing shows Modeler is not on a public screen by default so modePro or some other commodity would be needed to promote it to a Pub.

Go to top


Re: New LightwaveRTG for Amiga with RTG and Amiga NG.
Just popping in
Just popping in


@kikems I haven't had he opportunity to try yet, but is the Modeler screen public? Part of my modepro setup was to make it public so wondering if modepro (or screens) will still be needed for that? If so, any chance it can be made public by default?

Go to top


Re: Why waiting for an OS4 magazine?
Just popping in
Just popping in


Just got this email. Sounds like a perfect time to submit to AmigaAddict

Quote:
Simulant Magazines

Your story could (and perhaps should!) be in our next issue
Hi readers,

First of all, a huge thank you to everyone who continues to support Amiga Addict, Pixel Addict, and our brand-new SteamOS Gamer magazine.

SteamOS Gamer Amiga Addict Pixel Addict Atari Addict Amstrad Addict
These magazines genuinely wouldn't exist without you. Every issue is made possible by a community of passionate readers, creators, enthusiasts and writers, and we're incredibly grateful to everyone who buys an issue, shares the magazines, tells a friend about them, or simply keeps coming back for the next one.

But there's something else we'd really love to see more of: you getting involved in the magazines themselves.

Fancy seeing your name in print?
If you've ever thought about giving writing a go, why not give it a try? You don't need to be a professional writer, and you don't need years of experience. If you have a story to tell, a game you love, an interesting project, a bit of retro history to share, or simply something you think other readers would enjoy, we'd love to hear from you.

Some of our favourite articles have come from people who are simply passionate about their hobby and wanted to share that enthusiasm with other readers. That's exactly what our magazines are about.

And of course, there's something rather satisfying about picking up a physical magazine and seeing your own name on the page!

We're always interested in hearing from new writers, as well as those of you who have contributed before. So if you've been thinking "I'd love to write something for the magazine, but I'm not sure where to start", this is your invitation to give it a go.

You can find out more about contributing, including what we're looking for and how to get in touch, on our Write For Us page:

https://www.simulant.media/contribute-simulant-magazines

We'd genuinely love to hear from you. The more our readers get involved, the more varied, interesting and personal we can make the magazines. Who knows, your next article could be in the next issue!

Thanks again for supporting the magazines, and for being such a brilliant community.

Jonah Naylor
www.simulant.media

Go to top


Re: GL4ES: another OpenGL over OpenGLES2 emulation - some tech. info and porting progress
Just popping in
Just popping in


@Maijestro look in the gl4es docs. I think there is an env you can set to mute that output

Go to top


Re: OpenGL ES v4 Library Development
Just popping in
Just popping in


I would like to support Daniel, but nowhere in that flyer does it mention what will be added/improved. @amigakit can you please elaborate on the plan for this new version?

Go to top


Re: X1000 CFE Patches: Testers Welcome (Fear not: real-time, no reflashing) v.01
Just popping in
Just popping in


@kas1e possible vaultdweller on discord might have some insights. He had a public discussion in Nov 2024 with Trevor about CFE and modifying etc

Go to top



TopTop
(1) 2 3 4 »




Powered by XOOPS 2.0 © 2001-2024 The XOOPS Project