Eliminate the createDevice() dependency.
BUG=18110152
Change-Id: I70182caebeb645d89c222782354ee8a48272893f
Reviewed-on: https://swiftshader-review.googlesource.com/1264
Reviewed-by: Nicolas Capens <nicolascapens@google.com>
Tested-by: Nicolas Capens <nicolascapens@google.com>
diff --git a/src/GLES2/libGLESv2/Device.cpp b/src/GLES2/libGLESv2/Device.cpp
index c2cc36a..f745337 100644
--- a/src/GLES2/libGLESv2/Device.cpp
+++ b/src/GLES2/libGLESv2/Device.cpp
@@ -89,6 +89,7 @@
setSourceBlendFactorAlpha(BLEND_ONE);
setDestBlendFactorAlpha(BLEND_ZERO);
setBlendOperationAlpha(BLENDOP_ADD);
+ setPointSpriteEnable(true);
for(int i = 0; i < 16; i++)
{
@@ -783,19 +784,3 @@
synchronize();
}
}
-
-// Exported functions for use by EGL
-extern "C"
-{
- gl::Device *createDevice()
- {
- sw::Context *context = new sw::Context();
-
- if(context)
- {
- return new gl::Device(context);
- }
-
- return 0;
- }
-}
\ No newline at end of file