--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%402606
This commit is contained in:
Sam Lantinga 2007-08-15 03:50:49 +00:00
parent 6113055717
commit b480be4c28
2 changed files with 5 additions and 6 deletions

View file

@ -507,7 +507,7 @@ DirectFB_UpdateTexture(SDL_Renderer * renderer, SDL_Texture * texture,
(DirectFB_RenderData *) renderer->driverdata;
DFBResult ret;
Uint8 *dpixels;
int dpitch;
int dpitch;
Uint8 *src, *dst;
int row;
size_t length;
@ -525,10 +525,10 @@ DirectFB_UpdateTexture(SDL_Renderer * renderer, SDL_Texture * texture,
src += pitch;
dst += dpitch;
}
SDL_DFB_CHECKERR(data->surface->Unlock(data->surface) );
SDL_DFB_CHECKERR(data->surface->Unlock(data->surface));
return 0;
error:
return 1;
error:
return 1;
}

View file

@ -89,10 +89,9 @@ X11_GL_LoadLibrary(_THIS, const char *path)
if (!handle) {
return -1;
}
// LoadLibrary may be called before WindowCreate!
X11_GL_Initialize(_this);
/* Load new function pointers */
_this->gl_data->glXGetProcAddress =
(void *(*)(const GLubyte *)) GL_LoadFunction(handle,