diff options
author | marha <marha@users.sourceforge.net> | 2014-08-22 22:27:13 +0200 |
---|---|---|
committer | marha <marha@users.sourceforge.net> | 2014-08-22 22:27:13 +0200 |
commit | 4469aefef31cd682683944aa91e0b3edc0042fa4 (patch) | |
tree | ec4dd6d3694d56afd853c891781a3311cc920c9c /mesalib/src/mesa/drivers/dri/swrast | |
parent | 112d89481850102f28b6e7ff4f40b65c41e11f6c (diff) | |
download | vcxsrv-4469aefef31cd682683944aa91e0b3edc0042fa4.tar.gz vcxsrv-4469aefef31cd682683944aa91e0b3edc0042fa4.tar.bz2 vcxsrv-4469aefef31cd682683944aa91e0b3edc0042fa4.zip |
Synchronised and compiled
Diffstat (limited to 'mesalib/src/mesa/drivers/dri/swrast')
-rw-r--r-- | mesalib/src/mesa/drivers/dri/swrast/swrast.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/mesalib/src/mesa/drivers/dri/swrast/swrast.c b/mesalib/src/mesa/drivers/dri/swrast/swrast.c index 738bee250..02e76dd35 100644 --- a/mesalib/src/mesa/drivers/dri/swrast/swrast.c +++ b/mesalib/src/mesa/drivers/dri/swrast/swrast.c @@ -141,6 +141,7 @@ swrast_query_renderer_integer(__DRIscreen *psp, int param, return 0; case __DRI2_RENDERER_VIDEO_MEMORY: { /* XXX: Do we want to return the full amount of system memory ? */ +#ifndef _MSC_VER const long system_memory_pages = sysconf(_SC_PHYS_PAGES); const long system_page_size = sysconf(_SC_PAGE_SIZE); @@ -155,6 +156,9 @@ swrast_query_renderer_integer(__DRIscreen *psp, int param, value[0] = system_memory_megabytes; return 0; +#else + return -1; +#endif } case __DRI2_RENDERER_UNIFIED_MEMORY_ARCHITECTURE: /** |