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

Popular posts from this blog

Change php variable from jquery value using ajax (same page) -

Pull out data related to my apps from Android Play Store and iOS App Store -

How can I fetch data from a web server in an android application? -