summaryrefslogtreecommitdiff
path: root/libs/rs/rsShaderCache.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'libs/rs/rsShaderCache.cpp')
-rw-r--r--libs/rs/rsShaderCache.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/libs/rs/rsShaderCache.cpp b/libs/rs/rsShaderCache.cpp
index 4711d1b1ebf8..0218dc5fa3e7 100644
--- a/libs/rs/rsShaderCache.cpp
+++ b/libs/rs/rsShaderCache.cpp
@@ -14,10 +14,14 @@
* limitations under the License.
*/
+#ifndef ANDROID_RS_BUILD_FOR_HOST
#include "rsContext.h"
-
#include <GLES/gl.h>
#include <GLES2/gl2.h>
+#else
+#include "rsContextHostStub.h"
+#include <OpenGL/gl.h>
+#endif //ANDROID_RS_BUILD_FOR_HOST
using namespace android;
using namespace android::renderscript;