• entries
455
639
• views
422596

# OGLWFW Linux update 2

105 views

Progress!!!

Firstly, I'm starting to get on with Linux as a dev env a bit better, part of the problem was my screen rez being too low, i'm used to a nice large 1600*1200 display, so the 1280*1024 I was running at was too small and felt crampped. So after a quick fiddle with my Xorg.conf file and a reconfig I'm now up to my prefered size, however only a 65Hz refresh rate, which could get annoying as my monitor can do at least 85hz, ah well.

Anyways, so with that annoyance taken care of I started trying to work out why stuff was crashing.
After confirming the display and window handle was correct I moved on to checking size and lo! a problem, it appears that I wasnt setting the size of the window properly, MS Windows it seems can deal with this, X might not have liked it so I hacked around a bit, changed a couple of function and introduced to new private functions todo the grunt work and thats that problem taken care of.

However, we were still crashing, so I investigated further, found the error and promptly signed myself up for a thrashing... I'd forgotten to copy a varible over from a struct which was passed in to the local class copy... [embarrass]
One quick line of code later and bosh! the inital code works [grin]
Well... kinda, current debug output is...
(gdb) runStarting program: /home/phantom/Projects/oglwfw test 1Initalising the window manager...Creating our test window...Width and height = 800,600ctor called with Width and Height set to 800,600Width and height = 800,600Window created with win set to 35651586 and display of 0x8085d68Creating an OpenGL context with our caps checker...Creating context with display 0x8085d68 and window 35651586Making context 0x80923a0 current with display 0x8085d68 and window 35651586Checking to see if OpenGL has been initalised already...Running GLeeinit routine...GLee init completed fine...Running Caps checkers...Destorying window...Exiting function...X Error of failed request:  161  Major opcode of failed request:  142 (GLX)  Minor opcode of failed request:  32 ()  Serial number of failed request:  34  Current serial number in output stream:  37Program exited with code 01.

So, I need to narrow down where that X/GLX error is coming from, however things are starting to progress at last [smile]

Once I've got it working I'll have to resync the code with my Win32 code as some non-trivial things have changed.

## 1 Comment

Hi, good luck with fixing the problems. Let me know if you need any help.

## Create an account

Register a new account