mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2024-11-22 19:00:01 +08:00
改成硬件渲染
This commit is contained in:
parent
71174f906b
commit
e4d2509acd
@ -165,11 +165,8 @@ public:
|
||||
SDL_RENDERER_TARGETTEXTURE = 0x00000008 /**< The renderer supports
|
||||
rendering to texture */
|
||||
#endif
|
||||
#if defined(__linux__)
|
||||
_render = SDL_CreateRenderer(_win, -1, SDL_RENDERER_SOFTWARE);
|
||||
#else
|
||||
|
||||
_render = SDL_CreateRenderer(_win, -1, SDL_RENDERER_ACCELERATED);
|
||||
#endif
|
||||
}
|
||||
if (_render && !_texture) {
|
||||
_texture = SDL_CreateTexture(_render, SDL_PIXELFORMAT_IYUV,
|
||||
|
Loading…
Reference in New Issue
Block a user