c - Getting the total video memory size -
on internet have found there opengl extensions amd , nvidia memory information of graphics card. i'm trying total video memory size i'm getting 0 result. current version of code:
#include <gl/gl.h> #include <stdio.h> int main() { glint total_memory; total_memory = 0; glgetintegerv(0x9048, &total_memory); printf("%i\n", total_memory); return 0; } the operating system linux , nvidia driver version 313.30.
you should check glgeterror() if call seems failing.
in case, think need valid opengl context before can call opengl functions.
Comments
Post a Comment