Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
尘离序散
obs-studio
提交
ae17c457
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,发现更多精彩内容 >>
提交
ae17c457
编写于
1月 25, 2014
作者:
Z
Zachary Lund
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Regenerated files
上级
1c48834c
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
43 addition
and
40 deletion
+43
-40
libobs-opengl/GL/gl_obs.c
libobs-opengl/GL/gl_obs.c
+10
-9
libobs-opengl/GL/gl_obs.h
libobs-opengl/GL/gl_obs.h
+31
-31
libobs-opengl/GL/glx_obs.c
libobs-opengl/GL/glx_obs.c
+1
-0
libobs-opengl/GL/wgl_obs.c
libobs-opengl/GL/wgl_obs.c
+1
-0
未找到文件。
libobs-opengl/GL/gl_obs.c
浏览文件 @
ae17c457
...
...
@@ -44,6 +44,7 @@ static void* SunGetProcAddress (const GLubyte* name)
#ifdef _MSC_VER
#pragma warning(disable: 4055)
#pragma warning(disable: 4054)
#pragma warning(disable: 4996)
#endif
static
int
TestPointer
(
const
PROC
pTest
)
...
...
@@ -84,6 +85,9 @@ static PROC WinGetProcAddress(const char *name)
#endif
#endif
int
ogl_ext_EXT_texture_compression_s3tc
=
ogl_LOAD_FAILED
;
int
ogl_ext_EXT_texture_sRGB
=
ogl_LOAD_FAILED
;
int
ogl_ext_EXT_texture_filter_anisotropic
=
ogl_LOAD_FAILED
;
int
ogl_ext_ARB_framebuffer_object
=
ogl_LOAD_FAILED
;
int
ogl_ext_ARB_seamless_cube_map
=
ogl_LOAD_FAILED
;
int
ogl_ext_ARB_separate_shader_objects
=
ogl_LOAD_FAILED
;
...
...
@@ -91,9 +95,6 @@ int ogl_ext_ARB_debug_output = ogl_LOAD_FAILED;
int
ogl_ext_ARB_copy_image
=
ogl_LOAD_FAILED
;
int
ogl_ext_NV_copy_image
=
ogl_LOAD_FAILED
;
int
ogl_ext_EXT_texture_mirror_clamp
=
ogl_LOAD_FAILED
;
int
ogl_ext_EXT_texture_compression_s3tc
=
ogl_LOAD_FAILED
;
int
ogl_ext_EXT_texture_sRGB
=
ogl_LOAD_FAILED
;
int
ogl_ext_EXT_texture_filter_anisotropic
=
ogl_LOAD_FAILED
;
void
(
CODEGEN_FUNCPTR
*
_ptrc_glBindFramebuffer
)(
GLenum
,
GLuint
)
=
NULL
;
void
(
CODEGEN_FUNCPTR
*
_ptrc_glBindRenderbuffer
)(
GLenum
,
GLuint
)
=
NULL
;
...
...
@@ -2055,6 +2056,9 @@ typedef struct ogl_StrToExtMap_s
}
ogl_StrToExtMap
;
static
ogl_StrToExtMap
ExtensionMap
[
10
]
=
{
{
"GL_EXT_texture_compression_s3tc"
,
&
ogl_ext_EXT_texture_compression_s3tc
,
NULL
},
{
"GL_EXT_texture_sRGB"
,
&
ogl_ext_EXT_texture_sRGB
,
NULL
},
{
"GL_EXT_texture_filter_anisotropic"
,
&
ogl_ext_EXT_texture_filter_anisotropic
,
NULL
},
{
"GL_ARB_framebuffer_object"
,
&
ogl_ext_ARB_framebuffer_object
,
Load_ARB_framebuffer_object
},
{
"GL_ARB_seamless_cube_map"
,
&
ogl_ext_ARB_seamless_cube_map
,
NULL
},
{
"GL_ARB_separate_shader_objects"
,
&
ogl_ext_ARB_separate_shader_objects
,
Load_ARB_separate_shader_objects
},
...
...
@@ -2062,9 +2066,6 @@ static ogl_StrToExtMap ExtensionMap[10] = {
{
"GL_ARB_copy_image"
,
&
ogl_ext_ARB_copy_image
,
Load_ARB_copy_image
},
{
"GL_NV_copy_image"
,
&
ogl_ext_NV_copy_image
,
Load_NV_copy_image
},
{
"GL_EXT_texture_mirror_clamp"
,
&
ogl_ext_EXT_texture_mirror_clamp
,
NULL
},
{
"GL_EXT_texture_compression_s3tc"
,
&
ogl_ext_EXT_texture_compression_s3tc
,
NULL
},
{
"GL_EXT_texture_sRGB"
,
&
ogl_ext_EXT_texture_sRGB
,
NULL
},
{
"GL_EXT_texture_filter_anisotropic"
,
&
ogl_ext_EXT_texture_filter_anisotropic
,
NULL
},
};
static
int
g_extensionMapSize
=
10
;
...
...
@@ -2084,6 +2085,9 @@ static ogl_StrToExtMap *FindExtEntry(const char *extensionName)
static
void
ClearExtensionVars
()
{
ogl_ext_EXT_texture_compression_s3tc
=
ogl_LOAD_FAILED
;
ogl_ext_EXT_texture_sRGB
=
ogl_LOAD_FAILED
;
ogl_ext_EXT_texture_filter_anisotropic
=
ogl_LOAD_FAILED
;
ogl_ext_ARB_framebuffer_object
=
ogl_LOAD_FAILED
;
ogl_ext_ARB_seamless_cube_map
=
ogl_LOAD_FAILED
;
ogl_ext_ARB_separate_shader_objects
=
ogl_LOAD_FAILED
;
...
...
@@ -2091,9 +2095,6 @@ static void ClearExtensionVars()
ogl_ext_ARB_copy_image
=
ogl_LOAD_FAILED
;
ogl_ext_NV_copy_image
=
ogl_LOAD_FAILED
;
ogl_ext_EXT_texture_mirror_clamp
=
ogl_LOAD_FAILED
;
ogl_ext_EXT_texture_compression_s3tc
=
ogl_LOAD_FAILED
;
ogl_ext_EXT_texture_sRGB
=
ogl_LOAD_FAILED
;
ogl_ext_EXT_texture_filter_anisotropic
=
ogl_LOAD_FAILED
;
}
...
...
libobs-opengl/GL/gl_obs.h
浏览文件 @
ae17c457
...
...
@@ -153,6 +153,9 @@ typedef unsigned int GLhandleARB;
extern
"C"
{
#endif
/*__cplusplus*/
extern
int
ogl_ext_EXT_texture_compression_s3tc
;
extern
int
ogl_ext_EXT_texture_sRGB
;
extern
int
ogl_ext_EXT_texture_filter_anisotropic
;
extern
int
ogl_ext_ARB_framebuffer_object
;
extern
int
ogl_ext_ARB_seamless_cube_map
;
extern
int
ogl_ext_ARB_separate_shader_objects
;
...
...
@@ -160,9 +163,31 @@ extern int ogl_ext_ARB_debug_output;
extern
int
ogl_ext_ARB_copy_image
;
extern
int
ogl_ext_NV_copy_image
;
extern
int
ogl_ext_EXT_texture_mirror_clamp
;
extern
int
ogl_ext_EXT_texture_compression_s3tc
;
extern
int
ogl_ext_EXT_texture_sRGB
;
extern
int
ogl_ext_EXT_texture_filter_anisotropic
;
#define GL_COMPRESSED_RGBA_S3TC_DXT1_EXT 0x83F1
#define GL_COMPRESSED_RGBA_S3TC_DXT3_EXT 0x83F2
#define GL_COMPRESSED_RGBA_S3TC_DXT5_EXT 0x83F3
#define GL_COMPRESSED_RGB_S3TC_DXT1_EXT 0x83F0
#define GL_COMPRESSED_SLUMINANCE_ALPHA_EXT 0x8C4B
#define GL_COMPRESSED_SLUMINANCE_EXT 0x8C4A
#define GL_COMPRESSED_SRGB_ALPHA_EXT 0x8C49
#define GL_COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT 0x8C4D
#define GL_COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT 0x8C4E
#define GL_COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT 0x8C4F
#define GL_COMPRESSED_SRGB_EXT 0x8C48
#define GL_COMPRESSED_SRGB_S3TC_DXT1_EXT 0x8C4C
#define GL_SLUMINANCE8_ALPHA8_EXT 0x8C45
#define GL_SLUMINANCE8_EXT 0x8C47
#define GL_SLUMINANCE_ALPHA_EXT 0x8C44
#define GL_SLUMINANCE_EXT 0x8C46
#define GL_SRGB8_ALPHA8_EXT 0x8C43
#define GL_SRGB8_EXT 0x8C41
#define GL_SRGB_ALPHA_EXT 0x8C42
#define GL_SRGB_EXT 0x8C40
#define GL_MAX_TEXTURE_MAX_ANISOTROPY_EXT 0x84FF
#define GL_TEXTURE_MAX_ANISOTROPY_EXT 0x84FE
#define GL_COLOR_ATTACHMENT0 0x8CE0
#define GL_COLOR_ATTACHMENT1 0x8CE1
...
...
@@ -284,31 +309,6 @@ extern int ogl_ext_EXT_texture_filter_anisotropic;
#define GL_MIRROR_CLAMP_TO_BORDER_EXT 0x8912
#define GL_MIRROR_CLAMP_TO_EDGE_EXT 0x8743
#define GL_COMPRESSED_RGBA_S3TC_DXT1_EXT 0x83F1
#define GL_COMPRESSED_RGBA_S3TC_DXT3_EXT 0x83F2
#define GL_COMPRESSED_RGBA_S3TC_DXT5_EXT 0x83F3
#define GL_COMPRESSED_RGB_S3TC_DXT1_EXT 0x83F0
#define GL_COMPRESSED_SLUMINANCE_ALPHA_EXT 0x8C4B
#define GL_COMPRESSED_SLUMINANCE_EXT 0x8C4A
#define GL_COMPRESSED_SRGB_ALPHA_EXT 0x8C49
#define GL_COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT 0x8C4D
#define GL_COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT 0x8C4E
#define GL_COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT 0x8C4F
#define GL_COMPRESSED_SRGB_EXT 0x8C48
#define GL_COMPRESSED_SRGB_S3TC_DXT1_EXT 0x8C4C
#define GL_SLUMINANCE8_ALPHA8_EXT 0x8C45
#define GL_SLUMINANCE8_EXT 0x8C47
#define GL_SLUMINANCE_ALPHA_EXT 0x8C44
#define GL_SLUMINANCE_EXT 0x8C46
#define GL_SRGB8_ALPHA8_EXT 0x8C43
#define GL_SRGB8_EXT 0x8C41
#define GL_SRGB_ALPHA_EXT 0x8C42
#define GL_SRGB_EXT 0x8C40
#define GL_MAX_TEXTURE_MAX_ANISOTROPY_EXT 0x84FF
#define GL_TEXTURE_MAX_ANISOTROPY_EXT 0x84FE
#define GL_ALPHA 0x1906
#define GL_ALWAYS 0x0207
#define GL_AND 0x1501
...
...
@@ -1607,6 +1607,9 @@ extern int ogl_ext_EXT_texture_filter_anisotropic;
#define GL_TRANSFORM_FEEDBACK_BUFFER_INDEX 0x934B
#define GL_TRANSFORM_FEEDBACK_BUFFER_STRIDE 0x934C
#ifndef GL_ARB_framebuffer_object
#define GL_ARB_framebuffer_object 1
extern
void
(
CODEGEN_FUNCPTR
*
_ptrc_glBindFramebuffer
)(
GLenum
,
GLuint
);
...
...
@@ -1801,9 +1804,6 @@ extern void (CODEGEN_FUNCPTR *_ptrc_glCopyImageSubDataNV)(GLuint, GLenum, GLint,
#endif
/*GL_NV_copy_image*/
extern
void
(
CODEGEN_FUNCPTR
*
_ptrc_glBlendFunc
)(
GLenum
,
GLenum
);
#define glBlendFunc _ptrc_glBlendFunc
extern
void
(
CODEGEN_FUNCPTR
*
_ptrc_glClear
)(
GLbitfield
);
...
...
libobs-opengl/GL/glx_obs.c
浏览文件 @
ae17c457
...
...
@@ -44,6 +44,7 @@ static void* SunGetProcAddress (const GLubyte* name)
#ifdef _MSC_VER
#pragma warning(disable: 4055)
#pragma warning(disable: 4054)
#pragma warning(disable: 4996)
#endif
static
int
TestPointer
(
const
PROC
pTest
)
...
...
libobs-opengl/GL/wgl_obs.c
浏览文件 @
ae17c457
...
...
@@ -44,6 +44,7 @@ static void* SunGetProcAddress (const GLubyte* name)
#ifdef _MSC_VER
#pragma warning(disable: 4055)
#pragma warning(disable: 4054)
#pragma warning(disable: 4996)
#endif
static
int
TestPointer
(
const
PROC
pTest
)
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录