Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
尘离序散
obs-studio
提交
5c3b5680
O
obs-studio
项目概览
尘离序散
/
obs-studio
与 Fork 源项目一致
从无法访问的项目Fork
通知
30
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
O
obs-studio
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
5c3b5680
编写于
2月 06, 2014
作者:
Z
Zachary Lund
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Fixed gl-subsystem.c to reflect changes to GL loader API.
上级
019d8d83
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
5 addition
and
8 deletion
+5
-8
libobs-opengl/gl-subsystem.c
libobs-opengl/gl-subsystem.c
+5
-8
未找到文件。
libobs-opengl/gl-subsystem.c
浏览文件 @
5c3b5680
...
...
@@ -93,10 +93,7 @@ static inline void required_extension_error(const char *extension)
static
bool
gl_init_extensions
(
struct
gs_device
*
device
)
{
/* It's odd but ogl_IsVersionGEQ returns /false/ if the
specified version is less than the context. */
if
(
ogl_IsVersionGEQ
(
2
,
1
))
{
if
(
!
ogl_IsVersionGEQ
(
2
,
1
))
{
blog
(
LOG_ERROR
,
"obs-studio requires OpenGL version 2.1 or "
"higher."
);
return
false
;
...
...
@@ -104,23 +101,23 @@ static bool gl_init_extensions(struct gs_device* device)
gl_enable_debug
();
if
(
ogl_IsVersionGEQ
(
2
,
1
)
&&
!
ogl_ext_ARB_framebuffer_object
)
{
if
(
!
ogl_IsVersionGEQ
(
2
,
1
)
&&
!
ogl_ext_ARB_framebuffer_object
)
{
blog
(
LOG_ERROR
,
"OpenGL extension ARB_framebuffer_object "
"is required."
);
return
false
;
}
if
(
!
ogl_IsVersionGEQ
(
3
,
1
)
||
ogl_ext_ARB_seamless_cube_map
)
{
if
(
ogl_IsVersionGEQ
(
3
,
1
)
||
ogl_ext_ARB_seamless_cube_map
)
{
gl_enable
(
GL_TEXTURE_CUBE_MAP_SEAMLESS
);
}
if
(
ogl_IsVersionGEQ
(
4
,
1
)
&&
!
ogl_ext_ARB_separate_shader_objects
)
{
if
(
!
ogl_IsVersionGEQ
(
4
,
1
)
&&
!
ogl_ext_ARB_separate_shader_objects
)
{
blog
(
LOG_ERROR
,
"OpenGL extension ARB_separate_shader_objects "
"is required."
);
return
false
;
}
if
(
!
ogl_IsVersionGEQ
(
4
,
2
)
||
ogl_ext_ARB_copy_image
)
if
(
ogl_IsVersionGEQ
(
4
,
2
)
||
ogl_ext_ARB_copy_image
)
device
->
copy_type
=
COPY_TYPE_ARB
;
else
if
(
ogl_ext_NV_copy_image
)
device
->
copy_type
=
COPY_TYPE_NV
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录