summaryrefslogtreecommitdiffstats
path: root/libvo/vo_dxr3.c
diff options
context:
space:
mode:
Diffstat (limited to 'libvo/vo_dxr3.c')
-rw-r--r--libvo/vo_dxr3.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/libvo/vo_dxr3.c b/libvo/vo_dxr3.c
index 548d20559a..1ea1ad849b 100644
--- a/libvo/vo_dxr3.c
+++ b/libvo/vo_dxr3.c
@@ -515,9 +515,11 @@ static uint32_t preinit(const char *arg)
{
char devname[80];
int fdflags = O_WRONLY;
+ CpuCaps cpucaps;
+ GetCpuCaps(&cpucaps);
/* Open the control interface */
- if ((arg && !strcmp("noprebuf", arg)) || gCpuCaps.has3DNowExt) {
+ if ((arg && !strcmp("noprebuf", arg)) || cpucaps.has3DNowExt) {
printf("VO: [dxr3] Disabling prebuffering.\n");
noprebuf = 1;
fdflags |= O_NONBLOCK;