Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'source/blender/gpu/intern/gpu_extensions.c')
-rw-r--r--source/blender/gpu/intern/gpu_extensions.c12
1 files changed, 0 insertions, 12 deletions
diff --git a/source/blender/gpu/intern/gpu_extensions.c b/source/blender/gpu/intern/gpu_extensions.c
index 6fb40b06177..282b9dfc388 100644
--- a/source/blender/gpu/intern/gpu_extensions.c
+++ b/source/blender/gpu/intern/gpu_extensions.c
@@ -67,7 +67,6 @@ static struct GPUGlobal {
GLint maxtexturesvert;
GLint maxubosize;
GLint maxubobinds;
- int colordepth;
int samples_color_texture_max;
eGPUDeviceType device;
eGPUOSType os;
@@ -252,12 +251,6 @@ void gpu_extensions_init(void)
BLI_assert(ret == GL_FRAMEBUFFER_DEFAULT);
#endif
- GLint r, g, b;
- glGetFramebufferAttachmentParameteriv(GL_FRAMEBUFFER, GL_FRONT_LEFT, GL_FRAMEBUFFER_ATTACHMENT_RED_SIZE, &r);
- glGetFramebufferAttachmentParameteriv(GL_FRAMEBUFFER, GL_FRONT_LEFT, GL_FRAMEBUFFER_ATTACHMENT_GREEN_SIZE, &g);
- glGetFramebufferAttachmentParameteriv(GL_FRAMEBUFFER, GL_FRONT_LEFT, GL_FRAMEBUFFER_ATTACHMENT_BLUE_SIZE, &b);
- GG.colordepth = r + g + b; /* Assumes same depth for RGB. */
-
glGetIntegerv(GL_MAX_COLOR_TEXTURE_SAMPLES, &GG.samples_color_texture_max);
const char *vendor = (const char *)glGetString(GL_VENDOR);
@@ -402,11 +395,6 @@ void gpu_extensions_exit(void)
GPU_invalid_tex_free();
}
-int GPU_color_depth(void)
-{
- return GG.colordepth;
-}
-
bool GPU_mem_stats_supported(void)
{
return (GLEW_NVX_gpu_memory_info || GLEW_ATI_meminfo) && (G.debug & G_DEBUG_GPU_MEM);