Homesource Forums

Homeworld Source Editing Talk
It is currently Fri Mar 24, 2017 10:55 pm

All times are UTC - 5 hours




Post new topic Reply to topic  [ 1 post ] 
Author Message
PostPosted: Mon Apr 28, 2008 5:43 am 
Offline

Joined: Wed Jan 16, 2008 11:18 am
Posts: 4
Hi,

Finally I had time to get my hands on source code =) So far about problems.

On win32, on start up I got a runtime hardware exception - something about privileged instruction. It turned out SDL_GL_GetProcAddress is __cdecl - not __stdcall, and because of thoughtless cast rwglGetProcAddress calls are being messed up.

I don't know if following block have much sense:
Code:
rwglGetProcAddress = SDL_GL_GetProcAddress("rglGetProcAddress");
if (!rwglGetProcAddress)
{
    rwglGetProcAddress = SDL_GL_GetProcAddress;
}

Why not just use SDL_GL_GetProcAddress everywhere? Personally, I'd completely ditch out all rwgl*|rgl* functions in favor of SDL_GL_*|gl*.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group