Commit e4d2509a by xiongziliang

改成硬件渲染

parent 71174f90
......@@ -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,
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论