In Linux, X61 can also use wine to simulate Starcraft-general Linux technology-Linux technology and application information. The following is a detailed description. Author: forever steel (zhoun)
Primary: http://guo9310.blog.163.com/
Because of a bug in Mesa, if it is an intel X3100 graphics card (using intel's i965 driver) and running Starcraft with wine, an error will be reported and exited.
This patch solves this problem.
Finally, we can play Starcraft in Linux.
CODE: --- a/src/mesa/shader/arbprogram. c ++ B/src/mesa/shader/arbprogram. c @-229,7 + 229,7 @ _ mesa_ProgramStringARB (GLenum target, GL Struct gl_vertex_program * prog = ctx-> VertexProgram. Current; _ Mesa_parse_arb_vertex_program (ctx, target, string, len, prog ); -If (ctx-> Driver. programstringy y) + If (ctx-> Program. ErrorPos =-1 & ctx-> Driver. programstringy y) Ctx-> Driver. ProgramStringNotify (ctx, target, & prog-> Base ); } Else if (target = GL_FRAGMENT_PROGRAM_ARB @-237,7 + 237,7 @ _ mesa_ProgramStringARB (GLenum target, GL Struct gl_fragment_program * prog = ctx-> FragmentProgram. Current; _ Mesa_parse_arb_fragment_program (ctx, target, string, len, prog ); -If (ctx-> Driver. programstringy y) + If (ctx-> Program. ErrorPos =-1 & ctx-> Driver. programstringy y) Ctx-> Driver. ProgramStringNotify (ctx, target, & prog-> Base ); } Else { |