Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Page 1 of 4 123 ... LastLast
Results 1 to 10 of 34

Thread: WGL_ARB_render_texture crash

  1. #1
    Senior Member OpenGL Pro
    Join Date
    Feb 2001
    Location
    Switzerland
    Posts
    1,594

    WGL_ARB_render_texture crash

    i use the newest drivers from nvidia's homepage for xp/2k, i run 2k and i have a geforce2mx.
    i downloaded the demo from nvidia (http://developer.nvidia.com/view.asp?IO=ogl_rtt) and it runs.
    i have a lot of extensions and gl1.3.1 as you can see in my logfile: http://tyrannen.starcraft3d.net/logfile.html

    i use, as nvidia does, the glh-headerfiles, namely glh/glh_extensions to initialise them.

    as you can see, i can't initialise all my extensions cause i dont have code for all of them, but the ones i need are there. no error for them (you see the checks for the needed extensions after the full list..)

    i create a pbuffer with the code of the demo from nvidia and i get no errors, so it is valid (how to check if the pbuffer is ok btw? there are some query-funcs i think..)

    i create my texture. and guess what? no errors

    i have only one problem: when i try to bind my pbuffer or release it from the texture, i get a crash. no error, but a simple plain application crash:
    Code :
    ---------------------------
    NVOpenGLPbuffer: Project 0001.exe - Fehler in Anwendung
    ---------------------------
    Die Anweisung in "0x695ee9d0" verweist auf Speicher in "0x00000060". Der Vorgang
     
    "read" konnte nicht auf dem Speicher durchgeführt werden.
     
     
    Klicken Sie auf "OK", um das Programm zu beenden.
    Klicken Sie auf "Abbrechen", um das Programm zu debuggen.
    ---------------------------
    OK   Abbrechen   
    ---------------------------
    (its in german, but i think you know it )

    if you want to try it yourself. here: http://tyrannen.starcraft3d.net/Release.zip

    and these are my two functions:

    Code :
    bool RenderTarget::BeginPaint() {
    	glBindTexture(GL_TEXTURE_2D,m_textureID);
    // NEXT LINE CRASHES
    	wglReleaseTexImageARB(m_hpbuffer,WGL_FRONT_LEFT_ARB);
     
    	wglMakeCurrent(m_hdc,m_hglrc);
    	return true;
    }
     
    bool RenderTarget::FinishPaint() {
    	Acc<OpenGL> gl;
    	glFlush();
    	gl->MakeCurrent();
    // THIS ONE CRASHES AS WELL
    	wglBindTexImageARB(m_hpbuffer,WGL_FRONT_LEFT_ARB);
    	return true;
    }
    now the big joke is. i can call these functions! if i call them with wglBindTexImageARB(0,0) this works well, at least, no crashes..

    but there the crash occurs..

    if you need the whole source to play around, i can send it.. i've uploaded the RenderTarget.cpp as well: http://tyrannen.starcraft3d.net/RenderTarget.cpp

    and yes, i removed lot of the errorchecking from nvidia and re-arranged most of it, but i primary used nvidias code and got the same problem, nothing changed so far..
    i'm working on this now since about 8 hours and i'm really tired of this bug..
    http://davepermen.net - if i could stay true to my heart, i would feel totally free

  2. #2
    Senior Member OpenGL Pro
    Join Date
    Feb 2001
    Location
    Switzerland
    Posts
    1,594

    Re: WGL_ARB_render_texture crash

    interesting, not?
    ---------------------------
    NVOpenGLPbuffer: Project 0001.exe - Fehler in Anwendung
    ---------------------------
    Die Anweisung in "0x695ee9d0" verweist auf Speicher in "0x00000060". Der Vorgang

    "read" konnte nicht auf dem Speicher durchgeführt werden.


    Klicken Sie auf "OK", um das Programm zu beenden.
    Klicken Sie auf "Abbrechen", um das Programm zu debuggen.
    ---------------------------
    OK Abbrechen
    ---------------------------

    have you looked at the titlebar?

    NVOpenGLPbuffer: Project 0001.exe - Fehler in Anwendung
    from where is the "NVOpenGLPbuffer: " ? thats not from me..
    http://davepermen.net - if i could stay true to my heart, i would feel totally free

  3. #3
    Junior Member Regular Contributor
    Join Date
    Oct 2000
    Location
    England
    Posts
    103

    Re: WGL_ARB_render_texture crash

    Rebuild all?
    --kieran

  4. #4
    Senior Member OpenGL Guru Humus's Avatar
    Join Date
    Mar 2000
    Location
    Stockholm, Sweden
    Posts
    2,345

    Re: WGL_ARB_render_texture crash

    Crashes on my Radeon 8500 too.

  5. #5
    Senior Member OpenGL Pro
    Join Date
    Feb 2001
    Location
    Switzerland
    Posts
    1,594

    Re: WGL_ARB_render_texture crash

    kieranatwork:
    rebuilded tons of times, doesn't mather
    humus:
    well, doesn't look like a driver bug then..
    http://davepermen.net - if i could stay true to my heart, i would feel totally free

  6. #6

    Re: WGL_ARB_render_texture crash

    Could you send me the project? Then I'll try it on my system.

  7. #7
    Senior Member OpenGL Pro
    Join Date
    Feb 2001
    Location
    Switzerland
    Posts
    1,594

    Re: WGL_ARB_render_texture crash

    i'm rewriting the whole code currently so no chance for a working compilation

    but you can try the executable (should be still online..)
    http://davepermen.net - if i could stay true to my heart, i would feel totally free

  8. #8
    Senior Member OpenGL Pro
    Join Date
    May 2000
    Location
    Hannover, Germany
    Posts
    1,074

    Re: WGL_ARB_render_texture crash

    Didnt know that dave was german
    - Michael Steinberg

  9. #9
    Senior Member OpenGL Pro
    Join Date
    Feb 2001
    Location
    Switzerland
    Posts
    1,594

    Re: WGL_ARB_render_texture crash

    ich bin schweizer..
    http://davepermen.net - if i could stay true to my heart, i would feel totally free

  10. #10
    Junior Member Regular Contributor
    Join Date
    Apr 2001
    Location
    London, UK (but from France)
    Posts
    125

    Re: WGL_ARB_render_texture crash

    ich bin schweizer
    german speaking Switzerland ?

Posting Permissions

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