mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-11-11 07:11:39 +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,
|
bglTexImage2D(GL_TEXTURE_2D, 0, fmt, codec->width,codec->height,
|
||||||
0, fmt, GL_UNSIGNED_BYTE, codec->pic);
|
0, fmt, GL_UNSIGNED_BYTE, codec->pic);
|
||||||
|
if (bglGetError() != GL_NO_ERROR) return 1;
|
||||||
texuploaded = 1;
|
texuploaded = 1;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
bglTexSubImage2D(GL_TEXTURE_2D, 0, 0,0, codec->width,codec->height,
|
bglTexSubImage2D(GL_TEXTURE_2D, 0, 0,0, codec->width,codec->height,
|
||||||
fmt, GL_UNSIGNED_BYTE, codec->pic);
|
fmt, GL_UNSIGNED_BYTE, codec->pic);
|
||||||
|
if (bglGetError() != GL_NO_ERROR) return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
float vid_wbyh = ((float)codec->width)/codec->height;
|
float vid_wbyh = ((float)codec->width)/codec->height;
|
||||||
|
|
Loading…
Reference in a new issue