Commit b913188e by Nicolas Capens Committed by Nicolas Capens

Fix S3TC compilation on Linux.

BUG=14602552 Change-Id: Ie2488d4301ed119ff9cc0105954f875f7e3050fd Reviewed-on: https://swiftshader-review.googlesource.com/1120Reviewed-by: 's avatarNicolas Capens <nicolascapens@google.com>
parent 81b9ca65
...@@ -1127,7 +1127,7 @@ EGLImageKHR EGLAPIENTRY eglCreateImageKHR(EGLDisplay dpy, EGLContext ctx, EGLenu ...@@ -1127,7 +1127,7 @@ EGLImageKHR EGLAPIENTRY eglCreateImageKHR(EGLDisplay dpy, EGLContext ctx, EGLenu
return error(EGL_BAD_MATCH, EGL_NO_IMAGE_KHR); return error(EGL_BAD_MATCH, EGL_NO_IMAGE_KHR);
} }
GLuint name = (GLuint)buffer; GLuint name = reinterpret_cast<intptr_t>(buffer);
if(name == 0) if(name == 0)
{ {
......
...@@ -16,7 +16,11 @@ ...@@ -16,7 +16,11 @@
#define PERF_HUD 0 // Display time spent on vertex, setup and pixel processing for each thread #define PERF_HUD 0 // Display time spent on vertex, setup and pixel processing for each thread
#define PERF_PROFILE 0 // Profile various pipeline stages and display the timing in SwiftConfig #define PERF_PROFILE 0 // Profile various pipeline stages and display the timing in SwiftConfig
#define S3TC_SUPPORT (_WIN32) #if defined(_WIN32)
#define S3TC_SUPPORT 1
#else
#define S3TC_SUPPORT 0
#endif
#if PERF_PROFILE #if PERF_PROFILE
enum enum
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment