Skip to content

Instantly share code, notes, and snippets.

@ucarion
Created September 12, 2017 04:34
Show Gist options
  • Save ucarion/8ee87d21e3cf2d4df142062c6c8846f1 to your computer and use it in GitHub Desktop.
Save ucarion/8ee87d21e3cf2d4df142062c6c8846f1 to your computer and use it in GitHub Desktop.
31831 glXMakeCurrent(dpy = 0x7f510c480000, drawable = 20971523, ctx = 0x7f5109fc6d48) = True
31832 glGenTextures(n = 1, textures = &6)
31833 glBindTexture(target = GL_TEXTURE_2D, texture = 6)
31834 glTexStorage2D(target = GL_TEXTURE_2D, levels = 1, internalformat = GL_DEPTH24_STENCIL8, width = 801, height = 600)
31835 glTexParameteri(target = GL_TEXTURE_2D, pname = GL_TEXTURE_BASE_LEVEL, param = 0)
31836 glTexParameteri(target = GL_TEXTURE_2D, pname = GL_TEXTURE_MAX_LEVEL, param = 0)
31838 glGenTextures(n = 1, textures = &7)
31839 glBindTexture(target = GL_TEXTURE_2D, texture = 7)
31840 glTexStorage2D(target = GL_TEXTURE_2D, levels = 1, internalformat = GL_SRGB8_ALPHA8, width = 801, height = 600)
31841 glTexParameteri(target = GL_TEXTURE_2D, pname = GL_TEXTURE_BASE_LEVEL, param = 0)
31842 glTexParameteri(target = GL_TEXTURE_2D, pname = GL_TEXTURE_MAX_LEVEL, param = 0)
31844 glUseProgram(program = 0)
31846 glBindVertexArray(array = 1)
31848 glBindBuffer(target = GL_ELEMENT_ARRAY_BUFFER, buffer = 0)
31850 glBindFramebuffer(target = GL_FRAMEBUFFER, framebuffer = 0)
31852 glFrontFace(mode = GL_CCW)
31853 glEnable(cap = GL_CULL_FACE)
31854 glCullFace(mode = GL_BACK)
31855 glPolygonMode(face = GL_FRONT_AND_BACK, mode = GL_FILL)
31856 glDisable(cap = GL_POLYGON_OFFSET_FILL)
31857 glDisable(cap = GL_MULTISAMPLE)
31859 glViewport(x = 0, y = 0, width = 0, height = 0)
31861 glDisable(cap = GL_SCISSOR_TEST)
31863 glDisable(cap = GL_DEPTH_TEST)
31865 glDisable(cap = GL_STENCIL_TEST)
31867 glDisablei(target = GL_BLEND, index = 0)
31868 glColorMaski(index = 0, r = GL_TRUE, g = GL_TRUE, b = GL_TRUE, a = GL_TRUE)
31870 glDisablei(target = GL_BLEND, index = 1)
31871 glColorMaski(index = 1, r = GL_TRUE, g = GL_TRUE, b = GL_TRUE, a = GL_TRUE)
31873 glDisablei(target = GL_BLEND, index = 2)
31874 glColorMaski(index = 2, r = GL_TRUE, g = GL_TRUE, b = GL_TRUE, a = GL_TRUE)
31876 glDisablei(target = GL_BLEND, index = 3)
31877 glColorMaski(index = 3, r = GL_TRUE, g = GL_TRUE, b = GL_TRUE, a = GL_TRUE)
31879 glBlendColor(red = 0, green = 0, blue = 0, alpha = 0)
31881 glBindFramebuffer(target = GL_DRAW_FRAMEBUFFER, framebuffer = 0)
31883 glViewport(x = 0, y = 0, width = 1, height = 1)
31885 glColorMask(red = GL_TRUE, green = GL_TRUE, blue = GL_TRUE, alpha = GL_TRUE)
31886 glClearBufferfv(buffer = GL_COLOR, drawbuffer = 0, value = {0.3, 0.3, 0.3, 1})
31888 glDepthMask(flag = GL_TRUE)
31889 glClearBufferfv(buffer = GL_DEPTH, drawbuffer = 0, value = &1)
31891 glBindFramebuffer(target = GL_DRAW_FRAMEBUFFER, framebuffer = 1)
31893 glFramebufferTexture(target = GL_DRAW_FRAMEBUFFER, attachment = GL_COLOR_ATTACHMENT0, texture = 7, level = 0)
31894 glFramebufferTexture(target = GL_DRAW_FRAMEBUFFER, attachment = GL_COLOR_ATTACHMENT1, texture = 0, level = 0)
31895 glFramebufferTexture(target = GL_DRAW_FRAMEBUFFER, attachment = GL_COLOR_ATTACHMENT2, texture = 0, level = 0)
31896 glFramebufferTexture(target = GL_DRAW_FRAMEBUFFER, attachment = GL_COLOR_ATTACHMENT3, texture = 0, level = 0)
31898 glDrawBuffers(n = 1, bufs = &GL_COLOR_ATTACHMENT0)
31900 glColorMask(red = GL_TRUE, green = GL_TRUE, blue = GL_TRUE, alpha = GL_TRUE)
31901 glClearBufferfv(buffer = GL_COLOR, drawbuffer = 0, value = {0.3, 0.3, 0.3, 1})
31903 glFramebufferTexture(target = GL_DRAW_FRAMEBUFFER, attachment = GL_COLOR_ATTACHMENT0, texture = 0, level = 0)
31904 glFramebufferTexture(target = GL_DRAW_FRAMEBUFFER, attachment = GL_COLOR_ATTACHMENT1, texture = 0, level = 0)
31905 glFramebufferTexture(target = GL_DRAW_FRAMEBUFFER, attachment = GL_COLOR_ATTACHMENT2, texture = 0, level = 0)
31906 glFramebufferTexture(target = GL_DRAW_FRAMEBUFFER, attachment = GL_COLOR_ATTACHMENT3, texture = 0, level = 0)
31907 glFramebufferTexture(target = GL_DRAW_FRAMEBUFFER, attachment = GL_DEPTH_ATTACHMENT, texture = 6, level = 0)
31909 glDrawBuffers(n = 0, bufs = {})
31911 glDepthMask(flag = GL_TRUE)
31912 glClearBufferfv(buffer = GL_DEPTH, drawbuffer = 0, value = &1)
31913 glGetError() = GL_INVALID_FRAMEBUFFER_OPERATION
31915 glXMakeCurrent(dpy = 0x7f510c480000, drawable = 0, ctx = NULL) = True
31916 glXDestroyContext(dpy = 0x7f510c480000, ctx = 0x7f5109fc6d48)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment