Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 331472 Details for
Bug 446020
games-strategy/warzone2100: new version 3.1_rc3
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
warzone2100-3.1_rc3-gl-save-state-crash.patch
warzone2100-3.1_rc3-gl-save-state-crash.patch (text/plain), 1.65 KB, created by
Ambroz Bizjak
on 2012-12-05 00:31:07 UTC
(
hide
)
Description:
warzone2100-3.1_rc3-gl-save-state-crash.patch
Filename:
MIME Type:
Creator:
Ambroz Bizjak
Created:
2012-12-05 00:31:07 UTC
Size:
1.65 KB
patch
obsolete
>diff --git a/3rdparty/quesoglc/misc.c b/3rdparty/quesoglc/misc.c >index 9d6968a..4f5729f 100644 >--- a/3rdparty/quesoglc/misc.c >+++ b/3rdparty/quesoglc/misc.c >@@ -519,15 +519,17 @@ void __glcSaveGLState(__GLCglState* inGLState, const __GLCcontext* inContext, > && inContext->enableState.glObjects > && GLEW_ARB_vertex_buffer_object)) { > inGLState->vertexArray = glIsEnabled(GL_VERTEX_ARRAY); >- glGetIntegerv(GL_VERTEX_ARRAY_SIZE, &inGLState->vertexArraySize); >- glGetIntegerv(GL_VERTEX_ARRAY_TYPE, &inGLState->vertexArrayType); >- glGetIntegerv(GL_VERTEX_ARRAY_STRIDE, &inGLState->vertexArrayStride); >- glGetPointerv(GL_VERTEX_ARRAY_POINTER, &inGLState->vertexArrayPointer); >+ if (inGLState->vertexArray == GL_TRUE) { >+ glGetIntegerv(GL_VERTEX_ARRAY_SIZE, &inGLState->vertexArraySize); >+ glGetIntegerv(GL_VERTEX_ARRAY_TYPE, &inGLState->vertexArrayType); >+ glGetIntegerv(GL_VERTEX_ARRAY_STRIDE, &inGLState->vertexArrayStride); >+ glGetPointerv(GL_VERTEX_ARRAY_POINTER, &inGLState->vertexArrayPointer); >+ } > inGLState->normalArray = glIsEnabled(GL_NORMAL_ARRAY); > inGLState->colorArray = glIsEnabled(GL_COLOR_ARRAY); > inGLState->indexArray = glIsEnabled(GL_INDEX_ARRAY); > inGLState->texCoordArray = glIsEnabled(GL_TEXTURE_COORD_ARRAY); >- if (inAll || inContext->renderState.renderStyle == GLC_TEXTURE) { >+ if ((inAll || inContext->renderState.renderStyle == GLC_TEXTURE) && inGLState->texCoordArray == GL_TRUE) { > glGetIntegerv(GL_TEXTURE_COORD_ARRAY_SIZE, &inGLState->texCoordArraySize); > glGetIntegerv(GL_TEXTURE_COORD_ARRAY_TYPE, &inGLState->texCoordArrayType); > glGetIntegerv(GL_TEXTURE_COORD_ARRAY_STRIDE,
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 446020
:
331466
|
331468
|
331470
| 331472 |
331474
|
331546