Changeset 37304 in vbox for trunk/src/VBox/GuestHost/OpenGL
- Timestamp:
- Jun 2, 2011 11:48:48 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/GuestHost/OpenGL/state_tracker/state_program.c
r37216 r37304 2106 2106 able[to->vpPointSize](GL_VERTEX_PROGRAM_POINT_SIZE_NV); 2107 2107 } 2108 2109 CLEARDIRTY(b->vpEnable, nbitID); 2108 DIRTY(b->vpEnable, nbitID); 2110 2109 } 2111 2110 … … 2121 2120 able[to->fpEnabledARB](GL_FRAGMENT_PROGRAM_ARB); 2122 2121 } 2123 CLEARDIRTY(b->fpEnable, nbitID);2122 DIRTY(b->fpEnable, nbitID); 2124 2123 } 2125 2124 … … 2133 2132 to->TrackMatrixTransform[i]); 2134 2133 } 2135 CLEARDIRTY(b->trackMatrix[i], nbitID);2134 DIRTY(b->trackMatrix[i], nbitID); 2136 2135 } 2137 2136 } … … 2149 2148 diff_api.BindProgramNV(GL_VERTEX_PROGRAM_NV, toProg->id); 2150 2149 } 2151 CLEARDIRTY(b->vpBinding, nbitID);2150 DIRTY(b->vpBinding, nbitID); 2152 2151 } 2153 2152 … … 2156 2155 if (CHECKDIRTY(toProg->dirtyProgram, bitID)) { 2157 2156 if (toProg->isARBprogram) 2158 diff_api.ProgramStringARB( GL_VERTEX_PROGRAM_ARB, 2159 toProg->format, 2160 toProg->length, 2161 toProg->string ); 2157 diff_api.ProgramStringARB(GL_VERTEX_PROGRAM_ARB, toProg->format, toProg->length, toProg->string); 2162 2158 else 2163 diff_api.LoadProgramNV( GL_VERTEX_PROGRAM_NV, 2164 toProg->id, 2165 toProg->length, 2166 toProg->string ); 2167 CLEARDIRTY(toProg->dirtyProgram, nbitID); 2159 diff_api.LoadProgramNV(GL_VERTEX_PROGRAM_NV, toProg->id, toProg->length, toProg->string); 2160 2161 DIRTY(toProg->dirtyProgram, nbitID); 2168 2162 } 2169 2163 … … 2173 2167 if (CHECKDIRTY(b->vertexEnvParameter[i], bitID)) { 2174 2168 if (toProg->isARBprogram) 2175 diff_api.ProgramEnvParameter4fvARB(GL_VERTEX_PROGRAM_ARB, i, 2176 to->vertexParameters[i]); 2169 diff_api.ProgramEnvParameter4fvARB(GL_VERTEX_PROGRAM_ARB, i, to->vertexParameters[i]); 2177 2170 else 2178 diff_api.ProgramParameter4fvNV(GL_VERTEX_PROGRAM_NV, i, 2179 to->vertexParameters[i]); 2180 CLEARDIRTY(b->vertexEnvParameter[i], nbitID);2171 diff_api.ProgramParameter4fvNV(GL_VERTEX_PROGRAM_NV, i, to->vertexParameters[i]); 2172 2173 DIRTY(b->vertexEnvParameter[i], nbitID); 2181 2174 } 2182 2175 } 2183 CLEARDIRTY(b->vertexEnvParameters, nbitID);2176 DIRTY(b->vertexEnvParameters, nbitID); 2184 2177 } 2185 2178 … … 2196 2189 } 2197 2190 } 2198 CLEARDIRTY(toProg->dirtyParams, nbitID);2191 DIRTY(toProg->dirtyParams, nbitID); 2199 2192 } 2200 2193 } … … 2212 2205 diff_api.BindProgramNV(GL_FRAGMENT_PROGRAM_NV, toProg->id); 2213 2206 } 2214 CLEARDIRTY(b->fpBinding, nbitID);2207 DIRTY(b->fpBinding, nbitID); 2215 2208 } 2216 2209 … … 2218 2211 /* fragment program text */ 2219 2212 if (CHECKDIRTY(toProg->dirtyProgram, bitID)) { 2220 diff_api.LoadProgramNV( GL_FRAGMENT_PROGRAM_NV, toProg->id, 2221 toProg->length, toProg->string ); 2222 CLEARDIRTY(toProg->dirtyProgram, nbitID); 2213 diff_api.LoadProgramNV(GL_FRAGMENT_PROGRAM_NV, toProg->id, toProg->length, toProg->string); 2214 DIRTY(toProg->dirtyProgram, nbitID); 2223 2215 } 2224 2216 … … 2229 2221 diff_api.ProgramParameter4fvNV(GL_FRAGMENT_PROGRAM_NV, i, 2230 2222 to->fragmentParameters[i]); 2231 CLEARDIRTY(b->fragmentEnvParameter[i], nbitID);2223 DIRTY(b->fragmentEnvParameter[i], nbitID); 2232 2224 } 2233 2225 } 2234 CLEARDIRTY(b->fragmentEnvParameters, nbitID);2226 DIRTY(b->fragmentEnvParameters, nbitID); 2235 2227 } 2236 2228 … … 2244 2236 (const GLubyte *) symbol->name, 2245 2237 symbol->value); 2246 CLEARDIRTY(symbol->dirty, nbitID);2238 DIRTY(symbol->dirty, nbitID); 2247 2239 } 2248 2240 } 2249 CLEARDIRTY(toProg->dirtyNamedParams, nbitID);2241 DIRTY(toProg->dirtyNamedParams, nbitID); 2250 2242 } 2251 2243 … … 2255 2247 if (CHECKDIRTY(toProg->dirtyParam[i], bitID)) { 2256 2248 if (toProg->isARBprogram) 2257 diff_api.ProgramLocalParameter4fvARB(GL_FRAGMENT_PROGRAM_ARB, i, 2258 toProg->parameters[i]); 2249 diff_api.ProgramLocalParameter4fvARB(GL_FRAGMENT_PROGRAM_ARB, i, toProg->parameters[i]); 2259 2250 else 2260 diff_api.ProgramLocalParameter4fvARB(GL_FRAGMENT_PROGRAM_NV, i, 2261 toProg->parameters[i]); 2251 diff_api.ProgramLocalParameter4fvARB(GL_FRAGMENT_PROGRAM_NV, i, toProg->parameters[i]); 2262 2252 } 2263 2253 } 2264 CLEARDIRTY(toProg->dirtyParams, nbitID);2254 DIRTY(toProg->dirtyParams, nbitID); 2265 2255 } 2266 2256 } … … 2274 2264 diff_api.BindProgramARB(GL_FRAGMENT_PROGRAM_ARB, toProg->id); 2275 2265 } 2276 CLEARDIRTY(b->fpBinding, nbitID);2266 DIRTY(b->fpBinding, nbitID); 2277 2267 } 2278 2268 … … 2280 2270 /* fragment program text */ 2281 2271 if (CHECKDIRTY(toProg->dirtyProgram, bitID)) { 2282 diff_api.ProgramStringARB( GL_FRAGMENT_PROGRAM_ARB, toProg->format, 2283 toProg->length, toProg->string ); 2284 CLEARDIRTY(toProg->dirtyProgram, nbitID); 2272 diff_api.ProgramStringARB(GL_FRAGMENT_PROGRAM_ARB, toProg->format, toProg->length, toProg->string); 2273 DIRTY(toProg->dirtyProgram, nbitID); 2285 2274 } 2286 2275 … … 2289 2278 for (i = 0; i < toCtx->limits.maxFragmentProgramEnvParams; i++) { 2290 2279 if (CHECKDIRTY(b->fragmentEnvParameter[i], bitID)) { 2291 diff_api.ProgramEnvParameter4fvARB(GL_FRAGMENT_PROGRAM_ARB, i, 2292 to->fragmentParameters[i]); 2293 CLEARDIRTY(b->fragmentEnvParameter[i], nbitID); 2280 diff_api.ProgramEnvParameter4fvARB(GL_FRAGMENT_PROGRAM_ARB, i, to->fragmentParameters[i]); 2281 DIRTY(b->fragmentEnvParameter[i], nbitID); 2294 2282 } 2295 2283 } 2296 CLEARDIRTY(b->fragmentEnvParameters, nbitID);2284 DIRTY(b->fragmentEnvParameters, nbitID); 2297 2285 } 2298 2286 … … 2301 2289 for (i = 0; i < CR_MAX_FRAGMENT_PROGRAM_LOCAL_PARAMS; i++) { 2302 2290 if (CHECKDIRTY(toProg->dirtyParam[i], bitID)) { 2303 diff_api.ProgramLocalParameter4fvARB(GL_FRAGMENT_PROGRAM_ARB, i, 2304 toProg->parameters[i]); 2305 CLEARDIRTY(toProg->dirtyParam[i], nbitID); 2291 diff_api.ProgramLocalParameter4fvARB(GL_FRAGMENT_PROGRAM_ARB, i, toProg->parameters[i]); 2292 DIRTY(toProg->dirtyParam[i], nbitID); 2306 2293 } 2307 2294 } 2308 CLEARDIRTY(toProg->dirtyParams, nbitID);2309 } 2310 } 2311 } 2312 2313 CLEARDIRTY(b->dirty, nbitID);2295 DIRTY(toProg->dirtyParams, nbitID); 2296 } 2297 } 2298 } 2299 2300 DIRTY(b->dirty, nbitID); 2314 2301 2315 2302 /* Resend program data */
Note:
See TracChangeset
for help on using the changeset viewer.