am 275e99fd: Merge "opengles emulator: remove compilation warning."
* commit '275e99fdb8cb7b5db7a0d2f4ce9160e8dd330334': opengles emulator: remove compilation warning.
This commit is contained in:
@@ -38,7 +38,7 @@ GLDecoder::~GLDecoder()
|
||||
int GLDecoder::initGL(get_proc_func_t getProcFunc, void *getProcFuncData)
|
||||
{
|
||||
if (getProcFunc == NULL) {
|
||||
char *libname = GLES_LIBNAME;
|
||||
const char *libname = GLES_LIBNAME;
|
||||
if (getenv(GLES_LIBNAME_VAR) != NULL) {
|
||||
libname = getenv(GLES_LIBNAME_VAR);
|
||||
}
|
||||
|
||||
@@ -428,7 +428,8 @@ bool checkWindowPixelFormatMatch(EGLNativeInternalDisplayType dpy,EGLNativeWindo
|
||||
*width = r.right - r.left;
|
||||
*height = r.bottom - r.top;
|
||||
HDC dc = GetDC(win);
|
||||
bool ret = SetPixelFormat(dc,cfg->nativeId(),&cfg->nativeConfig());
|
||||
EGLNativePixelFormatType nativeConfig = cfg->nativeConfig();
|
||||
bool ret = SetPixelFormat(dc,cfg->nativeId(),&nativeConfig);
|
||||
DeleteDC(dc);
|
||||
return ret;
|
||||
}
|
||||
@@ -495,7 +496,8 @@ EGLNativeContextType createContext(EGLNativeInternalDisplayType display,EglConfi
|
||||
HDC dpy = getDummyDC(display,cfg->nativeId());
|
||||
|
||||
if(!display->isPixelFormatSet(cfg->nativeId())){
|
||||
if(!SetPixelFormat(dpy,cfg->nativeId(),&cfg->nativeConfig())){
|
||||
EGLNativePixelFormatType nativeConfig = cfg->nativeConfig();
|
||||
if(!SetPixelFormat(dpy,cfg->nativeId(),&nativeConfig)){
|
||||
return NULL;
|
||||
}
|
||||
display->pixelFormatWasSet(cfg->nativeId());
|
||||
|
||||
@@ -542,7 +542,7 @@ int ApiGen::genDecoderHeader(const std::string &filename)
|
||||
classname.c_str(), m_basename.c_str(), sideString(SERVER_SIDE));
|
||||
fprintf(fp, "\tsize_t decode(void *buf, size_t bufsize, IOStream *stream);\n");
|
||||
fprintf(fp, "\n};\n\n");
|
||||
fprintf(fp, "#endif");
|
||||
fprintf(fp, "#endif\n");
|
||||
|
||||
fclose(fp);
|
||||
return 0;
|
||||
|
||||
Reference in New Issue
Block a user