summaryrefslogtreecommitdiff
path: root/src/render/naclgles.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/render/naclgles.cpp')
-rw-r--r--src/render/naclgles.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/render/naclgles.cpp b/src/render/naclgles.cpp
index ef53e6849..6451b6a36 100644
--- a/src/render/naclgles.cpp
+++ b/src/render/naclgles.cpp
@@ -28,6 +28,7 @@
#include <ppapi_simple/ps.h>
+#include <ppapi/c/ppb_graphics_3d.h>
#include <ppapi/c/ppb_opengles2.h>
#include <ppapi/gles2/gl2ext_ppapi.h>
@@ -36,11 +37,14 @@
const struct PPB_OpenGLES2* gles2Interface = nullptr;
PP_Resource gles2Context = nullptr;
+const struct PPB_Graphics3D_1_0 *graphics3dInterface = nullptr;
void NaclGles::initGles()
{
gles2Interface = static_cast<const PPB_OpenGLES2*>(
PSGetInterface(PPB_OPENGLES2_INTERFACE));
+ graphics3dInterface = static_cast<const PPB_Graphics3D_1_0*>(
+ PSGetInterface(PPB_GRAPHICS_3D_INTERFACE_1_0));
gles2Context = glGetCurrentContextPPAPI();
logger->log("InitGles: %p, %d", gles2Interface, gles2Context);