Showing results for 
Search instead for 
Did you mean: 

Archives Discussions

Journeyman III

wglGetGPUInfoAMD crashing on Radeon HD 8790M

This code is crashing our Dell Latitude E6540 running Windows 7 64-bit with driver version (dated 11/29/2013).

UINT n = wglGetGPUIDsAMD(0, 0);

UINT * ids = new UINT;

UINT total_mem_mb = 0;

wglGetGPUIDsAMD(n, ids);

wglGetGPUInfoAMD(ids[0], WGL_GPU_RAM_AMD, GL_UNSIGNED_INT, sizeof(UINT), &total_mem_mb); // crash here

I see there was a similar report made on these forums a while back

: wglGetGPUInfoAMD behavior

But there's no mention of whether the problem was resolved. This code generally seems to work fine on desktop AMD cards. I've attached a simple test program that reproduces the problem.

0 Replies