Sign in to follow this  
  • entries
    455
  • comments
    639
  • views
    422596

OGLWFW Linux update 2

Sign in to follow this  

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) run
Starting program: /home/phantom/Projects/oglwfw test 1
Initalising the window manager...
Creating our test window...
Width and height = 800,600
ctor called with Width and Height set to 800,600
Width and height = 800,600
Window created with win set to 35651586 and display of 0x8085d68
Creating an OpenGL context with our caps checker...
Creating context with display 0x8085d68 and window 35651586
Making context 0x80923a0 current with display 0x8085d68 and window 35651586
Checking 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: 37

Program 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.
Sign in to follow this  


1 Comment


Recommended Comments

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now