# SDL\_OPENGL creates problem in smpeg

**URL:** <https://discourse.libsdl.org/t/sdl-opengl-creates-problem-in-smpeg/5116>\
**Category:** SDL Development\
**Created:** [September 21, 2001, 7:39am UTC](https://discourse.libsdl.org/t/sdl-opengl-creates-problem-in-smpeg/5116 "2001-09-21T07:39:00Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Peeta\_Basa\_Pati](https://discourse.libsdl.org/letter_avatar_proxy/v4/letter/p/e95f7d/32.png) [@Peeta\_Basa\_Pati](https://discourse.libsdl.org/u/Peeta_Basa_Pati)\
**Post date:** [September 21, 2001, 7:39am UTC](https://discourse.libsdl.org/t/sdl-opengl-creates-problem-in-smpeg/5116/1 "2001-09-21T07:39:00Z")

</div>

Hi!  
I just added the SDL\_OPENGL flag in the list of video flags in smpeg.  
The program creates run time error.

What is the alternative way to call openGl from SDL library while  
running the smpeg?

Thanks and regards,

pati

---

<div class="post-metadata">

**Author:** ![slouken](https://discourse.libsdl.org/letter_avatar_proxy/v4/letter/s/ec9cab/32.png) [@slouken](https://discourse.libsdl.org/u/slouken)\
**Post date:** [September 23, 2001, 10:42am UTC](https://discourse.libsdl.org/t/sdl-opengl-creates-problem-in-smpeg/5116/2 "2001-09-23T10:42:01Z")

</div>

> Hi!  
> I just added the SDL\_OPENGL flag in the list of video flags in smpeg.  
> The program creates run time error.

> What is the alternative way to call openGl from SDL library while  
> running the smpeg?

You can’t. You need to have SMPEG draw into a texture and upload the  
texture to the card. See the glmovie example program in the SMPEG archive  
for details.

See ya,  
-Sam Lantinga, Software Engineer, Blizzard Entertainment
