* commit 'ae70719852919ca3a7ed614481380e2ad14d97a3': 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)
|
int GLDecoder::initGL(get_proc_func_t getProcFunc, void *getProcFuncData)
|
||||||
{
|
{
|
||||||
if (getProcFunc == NULL) {
|
if (getProcFunc == NULL) {
|
||||||
char *libname = GLES_LIBNAME;
|
const char *libname = GLES_LIBNAME;
|
||||||
if (getenv(GLES_LIBNAME_VAR) != NULL) {
|
if (getenv(GLES_LIBNAME_VAR) != NULL) {
|
||||||
libname = getenv(GLES_LIBNAME_VAR);
|
libname = getenv(GLES_LIBNAME_VAR);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -428,7 +428,8 @@ bool checkWindowPixelFormatMatch(EGLNativeInternalDisplayType dpy,EGLNativeWindo
|
|||||||
*width = r.right - r.left;
|
*width = r.right - r.left;
|
||||||
*height = r.bottom - r.top;
|
*height = r.bottom - r.top;
|
||||||
HDC dc = GetDC(win);
|
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);
|
DeleteDC(dc);
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
@@ -495,7 +496,8 @@ EGLNativeContextType createContext(EGLNativeInternalDisplayType display,EglConfi
|
|||||||
HDC dpy = getDummyDC(display,cfg->nativeId());
|
HDC dpy = getDummyDC(display,cfg->nativeId());
|
||||||
|
|
||||||
if(!display->isPixelFormatSet(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;
|
return NULL;
|
||||||
}
|
}
|
||||||
display->pixelFormatWasSet(cfg->nativeId());
|
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));
|
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, "\tsize_t decode(void *buf, size_t bufsize, IOStream *stream);\n");
|
||||||
fprintf(fp, "\n};\n\n");
|
fprintf(fp, "\n};\n\n");
|
||||||
fprintf(fp, "#endif");
|
fprintf(fp, "#endif\n");
|
||||||
|
|
||||||
fclose(fp);
|
fclose(fp);
|
||||||
return 0;
|
return 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user