This code is crashing our Dell Latitude E6540 running Windows 7 64-bit with driver version 188.8.131.52 (dated 11/29/2013).
UINT n = wglGetGPUIDsAMD(0, 0); UINT * ids = new UINT[n]; UINT total_mem_mb = 0; wglGetGPUIDsAMD(n, ids); wglGetGPUInfoAMD(ids, 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
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.