2 Replies Latest reply on Dec 20, 2010 2:48 PM by Mars_999

    wglGetGPUInfoAMD() crashes?


      I am having a crash when I call this code... I have no idea why, and AFAIK I don't need a GL3+ RC to use this code? Correct....



      GLuint gpuIDs[16] = {0};
          GLuint maxGpus = wglGetGPUIDsAMD(16, gpuIDs);
          GLint freeMem[4] = {0};
          glGetIntegerv(GL_TEXTURE_FREE_MEMORY_ATI, &freeMem[0]);
          availableMemory = freeMem[0] / 1024;
          if(wglGetGPUInfoAMD(gpuIDs[0], WGL_GPU_RAM_AMD,   GL_UNSIGNED_INT, sizeof(GLuint), &totalMemory) != 1)
              totalMemory = 0;
          if(wglGetGPUInfoAMD(gpuIDs[0], WGL_GPU_CLOCK_AMD, GL_UNSIGNED_INT, sizeof(GLuint), &clockSpeed) != 1)
              clockSpeed = 0;


        • wglGetGPUInfoAMD() crashes?

          Argh from the looks of it WGL_ARB_create_context expects to setup a GL3.2 RC? If so then I am guessing this is the issue. Can anyone here please confirm that you need to use a GL3+ RC to use this function!




            • wglGetGPUInfoAMD() crashes?



              Can someone please tell me did you fix the this bug I found? As 10.12 now runs this code without crashing....

              ANd if someone could please point me in the right direction to submit bugs I would appreciate it! As I don't think I filed one as I couldn't find where to do that at....