#include "libGLES_CM.hpp"
#include "Framebuffer.h"
-#include "libEGL/EGLSurface.h"
+#include "common/Surface.hpp"
#include "Common/Thread.hpp"
#include "Common/SharedLibrary.hpp"
#include "common/debug.h"
return static_cast<es1::Context*>(context);
}
- return 0;
+ return nullptr;
}
Device *getDevice()
{
Context *context = getContext();
- return context ? context->getDevice() : 0;
+ return context ? context->getDevice() : nullptr;
}
// Records an error code
void DrawTexfvOES(const GLfloat *coords);
}
-egl::Context *es1CreateContext(egl::Display *display, const egl::Context *shareContext);
+egl::Context *es1CreateContext(egl::Display *display, const egl::Context *shareContext, const egl::Config *config);
extern "C" __eglMustCastToProperFunctionPointerType es1GetProcAddress(const char *procname);
egl::Image *createBackBuffer(int width, int height, const egl::Config *config);
egl::Image *createDepthStencil(unsigned int width, unsigned int height, sw::Format format, int multiSampleDepth, bool discard);