Page 1 of 3 123 LastLast
Results 1 to 10 of 23

Thread: AllocateMemoryNV always return null

  1. #1
    Senior Member OpenGL Pro
    Join Date
    Jul 2001
    Location
    France
    Posts
    1,662

    AllocateMemoryNV always return null

    hello,

    i've put this in the linux forum, but i didn't get reply anymore.
    As this is an ext problem, i put it here, in the case where...

    glXAllocateMemoryNV always return null
    and
    GL_NV_vertex_array_range seems not supported
    as said by glIsEnabled().

    any idea ?

    i haven't tried it under windows.

  2. #2
    Senior Member OpenGL Guru
    Join Date
    Feb 2000
    Location
    Sweden
    Posts
    2,978

    Re: AllocateMemoryNV always return null

    GL_NV_vertex_array_range seems not supported
    as said by glIsEnabled().
    glIsEnables is used to determine whether sometine is enabled or not. Not if something is supported. For supported features, check the extension string.

  3. #3
    Senior Member OpenGL Pro
    Join Date
    Jul 2001
    Location
    France
    Posts
    1,662

    Re: AllocateMemoryNV always return null

    and how i will do that ?

    if you can't tell for linux, just tell me for windows.

    thanks

  4. #4
    Senior Member OpenGL Pro
    Join Date
    Jul 2001
    Location
    France
    Posts
    1,662

    Re: AllocateMemoryNV always return null

    can anyone help ?

    always null returned by glXAllocateMemoryNV().

    must I use glx, or glut comply with it ?

  5. #5
    Senior Member Frequent Contributor
    Join Date
    Aug 2000
    Location
    Portsmouth, Hampshire, England
    Posts
    926

    Re: AllocateMemoryNV always return null

    const char* extensions = glGetString(GL_EXTENSIONS);

    Scan the string extensions for
    "GL_NV_vertex_array_range"

    If it's in there, then VAR is supported.

    I assume it is, cos you're using glxAllocateMemoryNV, which is part of the extension.

    Try reducing the size of the memory request.

    Nutty

  6. #6
    Senior Member Regular Contributor
    Join Date
    Aug 2001
    Posts
    145

    Re: AllocateMemoryNV always return null

    Try changing the priority:
    glxAllocateMemoryNV(nNumBytes, 0, 0, priority);

    If priority is in the range [0.25f,0.75f] then AGP mem will be used. If it's [0.75f,1.0f] then video mem will be used.

    kon


    [This message has been edited by kon (edited 01-22-2002).]

  7. #7
    Senior Member OpenGL Pro
    Join Date
    Jul 2001
    Location
    France
    Posts
    1,662

    Re: AllocateMemoryNV always return null

    i'll try this night.

    it's not a problem due to huge allocation since i allocate around 5*sizeof(GLfloat).

    And if priority changes on any system: beurk !!!

    cause (in linux forum), i tried Lev example,
    and tried to change some datas (prority and other params).

    will see it.

    thanks

    JD

  8. #8
    Senior Member OpenGL Pro
    Join Date
    Jul 2001
    Location
    France
    Posts
    1,662

    Re: AllocateMemoryNV always return null

    OK,

    i still haven't got the drivers for agp.
    But you said it isn't important for getting that working. So, it seems not the problem.

    And the allocation always fail. I tried everything but no succeed.

    then, glGetString( GL_EXTENSIONS); returns a null string. However, glxinfo returns that all what's needed is supported. what a strange thing in fact !!
    I couldn't get where is the problem.
    glXAllocateMemoryNV is not null, as glXFreeMemoryNV and glVertexArrayRangeNV, but all have got the same adress (as 0x80700400 but unsure).

    JD

  9. #9
    Senior Member Regular Contributor
    Join Date
    Aug 2001
    Posts
    145

    Re: AllocateMemoryNV always return null

    Just to be sure: Do you have a valid rendering context when calling these functions? What does glGetString(GL_RENDERER) return?

    kon

  10. #10
    Senior Member OpenGL Pro
    Join Date
    Jul 2001
    Location
    France
    Posts
    1,662

    Re: AllocateMemoryNV always return null

    i haven't tried. i can't try now, will try it this night.
    But i can get a display.
    i am using glut, is this a problem ?

    and if the context is not valid, what should i do ?

    JD

Page 1 of 3 123 LastLast

Similar Threads

  1. GL_SAMPLE_POSITION return null values
    By vkMarco in forum OpenGL: Basic Coding
    Replies: 3
    Last Post: 05-24-2011, 03:26 PM
  2. glutTrueTypeString return null! why?
    By Eymerich in forum OpenGL ES
    Replies: 0
    Last Post: 04-18-2008, 03:03 AM
  3. call ogl ext functions but return null??
    By wusheng in forum OpenGL: Windows
    Replies: 3
    Last Post: 11-18-2004, 04:00 PM
  4. return null-terminated string
    By paneb in forum OpenGL: Basic Coding
    Replies: 31
    Last Post: 04-16-2003, 11:09 AM
  5. glXChooseVisual return always NULL!
    By in forum OpenGL: Linux
    Replies: 1
    Last Post: 02-15-2002, 05:40 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Proudly hosted by Digital Ocean