Add defines to enable the reference rasterizer
TRAC #12343
Signed-off-by: Andrew Lewycky
Signed-off-by: Daniel Koch

Author:    Nicolas Capens

git-svn-id: https://angleproject.googlecode.com/svn/trunk@306 736b8ea6-26fd-11df-bfd4-992fa37f6226
diff --git a/src/libEGL/Display.cpp b/src/libEGL/Display.cpp
index 39949b2..20932de 100644
--- a/src/libEGL/Display.cpp
+++ b/src/libEGL/Display.cpp
@@ -17,6 +17,8 @@
 
 #include "libEGL/main.h"
 
+#define REF_RAST 0   // Can also be enabled by defining FORCE_REF_RAST in the project's predefined macros
+
 namespace egl
 {
 Display::Display(HDC deviceContext) : mDc(deviceContext)
@@ -25,7 +27,12 @@
     mDevice = NULL;
 
     mAdapter = D3DADAPTER_DEFAULT;
-    mDeviceType = D3DDEVTYPE_HAL;
+
+    #if REF_RAST == 1 || FORCE_REF_RAST
+        mDeviceType = D3DDEVTYPE_REF;
+    #else
+        mDeviceType = D3DDEVTYPE_HAL;
+    #endif
 
     mMinSwapInterval = 1;
     mMaxSwapInterval = 1;