Results 1 to 8 of 8

Thread: impossible to change stencil buffer size

  1. #1

    impossible to change stencil buffer size

    if different stencil size is specified the second time with SDL_GL_SetAttribute then SDL_SetVideoMode fails
    [pascal]
    SDL_GL_SetAttribute(SDL_GL_STENCIL_SIZE, ;
    surface:= SDL_SetVideoMode(640, 480, 32, SDL_OPENGL or SDL_DOUBLEBUF);
    SDL_FreeSurface(surface);
    SDL_GL_SetAttribute(SDL_GL_STENCIL_SIZE, 0);
    surface:= SDL_SetVideoMode(640, 480, 32, SDL_OPENGL or SDL_DOUBLEBUF);
    [/pascal]
    Anybody else experience this?

  2. #2

    impossible to change stencil buffer size

    try the code here

    http://www.cerebral-bicycle.co.uk/vi...doc=307&date=Y

    I had similar problems a while back, and you have to get it exactly right otherwise it just doesn't work.

    Dean
    <A HREF="http://www.myhpf.co.uk/banner.asp?friend=139328">
    <br /><IMG SRC="http://www.myhpf.co.uk/banners/60x468.gif" BORDER="0">
    <br /></A>

  3. #3

    impossible to change stencil buffer size

    Sorry completely miss read the issue. I'll test this and see if I get the same problem.

    Dean
    <A HREF="http://www.myhpf.co.uk/banner.asp?friend=139328">
    <br /><IMG SRC="http://www.myhpf.co.uk/banners/60x468.gif" BORDER="0">
    <br /></A>

  4. #4

    impossible to change stencil buffer size

    Anybody tried it?

  5. #5

    impossible to change stencil buffer size

    Hmm?¢_¬¶this topic looks like a counter argument to those that say that PGD is too SDL-centric
    Anyway dug through SDL?¢_Ts source and found out that it never actually destroys the old window, so for this to work it?¢_Ts needed to kill Video subsystem and initialize again.

  6. #6

    impossible to change stencil buffer size

    Hi Paulius

    sorry, this was on my to do list, we just got hit with some major overtime at my day job.

    glad you found out the issue, it's good to know.

    Dean
    <A HREF="http://www.myhpf.co.uk/banner.asp?friend=139328">
    <br /><IMG SRC="http://www.myhpf.co.uk/banners/60x468.gif" BORDER="0">
    <br /></A>

  7. #7

    impossible to change stencil buffer size

    More sdl weirdness with trying to make proper mode switching, seems after running full screen when switching to windowed mode and reseting video subsystem SetVideoMode passes ok, but no window gets created, windowed->windowed, full->full and windowed->full goes ok, anyone else get this?
    [pascal] SDL_SetVideoMode(640, 480, 32, SDL_OPENGL or SDL_FULLSCREEN)
    SDL_QuitSubSystem(SDL_INIT_VIDEO) ;
    SDL_InitSubSystem(SDL_INIT_VIDEO);
    SDL_SetVideoMode(640, 480, 32, SDL_OPENGL);
    [/pascal] :think:

  8. #8

    impossible to change stencil buffer size

    Can?¢_~t pinpoint where exactly there?¢_Ts a bug in sld with SDL_OPENGL flag, but using SDL_SetVideoMode without it seems to go over the issue.
    [pascal] SDL_SetVideoMode(640, 480, 32, SDL_OPENGL or SDL_FULLSCREEN)
    SDL_SetVideoMode(640, 480, 32, 0);
    SDL_QuitSubSystem(SDL_INIT_VIDEO) ;
    SDL_InitSubSystem(SDL_INIT_VIDEO);
    SDL_SetVideoMode(640, 480, 32, SDL_OPENGL);[/pascal]

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •