Windows Vista Tips

Windows Vista Tips > Newsgroups > Windows Vista Drivers > Two threads, each creating one rendering contexts with same device context ?

Reply
Thread Tools Display Modes

Two threads, each creating one rendering contexts with same device context ?

 
 
Skybuck Flying
Guest
Posts: n/a

 
      07-24-2010
Hello,

Situation is as follows:

1. First thread gets/sets pixel format for DC (I didn't write that code and
hardly understand it) and creates opengl context with wglCreateContext.

2. First thread creates second thread.

3. Second thread when running tries to create another rendering context with
the same device context from the first thread... but this fails ?!?

The handle returned is zero ?!? Is this normal ? Or does the driver not
support it, or does opengl not support it or am I doing something wrong...
hmm...

Does the second thread have to do anything with pixel formats or the dc ?

Bye,
Skybuck.


 
Reply With Quote
 
 
 
 
Skybuck Flying
Guest
Posts: n/a

 
      07-24-2010
Maybe this can help:

http://www.opengl.org/registry/specs...te_context.txt

And going to read this:

http://developer.amd.com/gpu_assets/GL3_WhitePaper.pdf

Bye,
Skybuck.


 
Reply With Quote
 
Skybuck Flying
Guest
Posts: n/a

 
      07-24-2010

"Skybuck Flying" <> wrote in message
news:10198$4c4a9bc9$54190f09$ b.home.nl...
> Maybe this can help:
>
> http://www.opengl.org/registry/specs...te_context.txt
>
> And going to read this:
>
> http://developer.amd.com/gpu_assets/GL3_WhitePaper.pdf


Nope no multi-threading information in last document.

Bye,
Skybuck.


 
Reply With Quote
 
Skybuck Flying
Guest
Posts: n/a

 
      07-24-2010
Hmm seems like windows can't do what I want:

http://www.codeproject.com/KB/openGL/ogltools.aspx

At the bottom it says:

"
Please also note that under Windows, only one RC may be created for a given
window and this RC cannot be used for another window.
"

I want to create two... but apperently it's not possible ?

So maybe have to create a hidden window which would be quite weird...

I wonder if DirectX is any better for multi threading ?

Bye,
Skybuck.


 
Reply With Quote
 
Skybuck Flying
Guest
Posts: n/a

 
      07-24-2010
Maybe hidden window not necessary.

Maybe bitmaps can be created and provide additional dc's...

Bye,
Skybuck.


 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: Unable to unload driver in Win 7 Tim Roberts Windows Vista Drivers 2 12-08-2009 12:24 PM
Game Compatibility BCurrey Windows Vista Games 6 11-29-2007 08:11 PM
Going Golfing but not with Vista markbyrn Windows Vista Games 15 03-08-2007 10:59 AM
americas army stuttering under vista premium ernie Windows Vista Games 0 02-27-2007 10:20 PM
problem in dxdiag Peewee64 Windows Vista Games 0 02-14-2007 09:49 PM



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59