mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-24 10:40:46 +00:00
Abort animvpx playback if uploading the texture for a frame throws a GL error. DONT_BUILD.
git-svn-id: https://svn.eduke32.com/eduke32@5074 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
7732db71af
commit
93d8d2dbdb
1 changed files with 2 additions and 0 deletions
|
@ -507,12 +507,14 @@ int32_t animvpx_render_frame(animvpx_codec_ctx *codec)
|
|||
{
|
||||
bglTexImage2D(GL_TEXTURE_2D, 0, fmt, codec->width,codec->height,
|
||||
0, fmt, GL_UNSIGNED_BYTE, codec->pic);
|
||||
if (bglGetError() != GL_NO_ERROR) return 1;
|
||||
texuploaded = 1;
|
||||
}
|
||||
else
|
||||
{
|
||||
bglTexSubImage2D(GL_TEXTURE_2D, 0, 0,0, codec->width,codec->height,
|
||||
fmt, GL_UNSIGNED_BYTE, codec->pic);
|
||||
if (bglGetError() != GL_NO_ERROR) return 1;
|
||||
}
|
||||
|
||||
float vid_wbyh = ((float)codec->width)/codec->height;
|
||||
|
|
Loading…
Reference in a new issue